Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ pygments: true
permalink: /:categories/:title.html
baseurl:

# markdown: rdiscount
markdown: redcarpet
redcarpet:
extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Scala の他の構文の例にならって、`seq(idx) = elem` は `seq.update(i
| **集合演算:** | |
| `xs intersect ys` |列 `xs` と `ys` の積集合で、`xs` における要素の順序を保ったもの。|
| `xs diff ys` |列 `xs` と `ys` の差集合で、`xs` における要素の順序を保ったもの。|
| `xs union ys` |和集合; `xs ++ ys` に同じ|
| `xs union ys` |和集合; `xs ++ ys` に同じ|
| `xs.distinct` |`xs` の部分列で要素の重複を一切含まないもの。 |

[`Seq`](http://www.scala-lang.org/api/{{ site.scala-version }}/scala/collection/Seq.html) トレイトには [`LinearSeq`](http://www.scala-lang.org/api/{{ site.scala-version }}/scala/collection/IndexedSeq.html) と [`IndexedSeq`](http://www.scala-lang.org/api/{{ site.scala-version }}/scala/collection/IndexedSeq.html)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ language: ja


val fruit = Set("apple", "orange", "peach", "banana")
fruit: scala.collection.immutable.Set[java.lang.String] =
fruit: scala.collection.immutable.Set[java.lang.String] =
Set(apple, orange, peach, banana)
scala> fruit("peach")
res0: Boolean = true
Expand Down Expand Up @@ -48,11 +48,11 @@ language: ja
| `xs.empty` |`xs` と同じクラスの空集合。|
| **集合演算:** | |
| `xs & ys` |`xs` と `ys` の積集合。|
| `xs intersect ys` |`xs & ys` に同じ|
| `xs intersect ys` |`xs & ys` に同じ|
| `xs | ys` |`xs` と `ys` の和集合。|
| `xs union ys` |`xs | ys` に同じ|
| `xs union ys` |`xs | ys` に同じ|
| `xs &~ ys` |`xs` と `ys` の差集合。|
| `xs diff ys` |`xs &~ ys` に同じ|
| `xs diff ys` |`xs &~ ys` に同じ|

可変集合は、この表にまとめてあるとおり、加算、減算、更新演算などの新たなメソッドを追加する。

Expand Down