最速Rubyリファレンスマニュアル検索!
すべて(3)
3.1(1)
3.2(1)
3.3(1)
3件ヒット
[1-3件を表示]
(0.131秒)
トップページ
>
:
i
>
:
h
>
:intersect?
別のキーワード
_builtin to_h
env to_h
hash to_h
array to_h
ostruct to_h
ライブラリ
ビルトイン
(3)
クラス
Array
(3)
検索結果
先頭1件
Array
#
intersect?(other) -> bool
Array
#
intersect?(other) -> bool
(24300.0)
3.1
3.2
3.3
インスタンスメソッド
other と共通の要素が少なくとも1個あれば true を、なければ false を返します。
...
ot
h
er と共通の要素が少なくとも1個あれば true を、なければ false を返します。
//eml
i
st[例][ruby]{
a = [ 1, 2, 3 ]
b = [ 3, 4, 5 ]
c = [ 5, 6, 7 ]
a.
intersect?
(b) # => true
a.
intersect?
(c) # => false
//}
...
Array