るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.015秒)

別のキーワード

  1. section ==
  2. section new
  3. section title
  4. config section
  5. section parent

クラス

検索結果

Set#intersection(enum) -> Set (9310.0)

共通部分、すなわち、2つの集合のいずれにも属するすべての要素からなる 新しい集合を作ります。

...が定義されたオブジェクトを指定します。
@raise ArgumentError 引数 enum に each メソッドが定義されていない場合に
発生します。

//emlist[][ruby]{
require 'set'
s1 = Set[10, 20, 30]
s2 = Set[10, 30, 50]
p s1 & s2 #=> #<Set: {10, 30}>
//}

@see Array#&...