最速Rubyリファレンスマニュアル検索!
すべて(3)
3.1(1)
3.2(1)
3.3(1)
3件ヒット
[1-3件を表示]
(0.195秒)
トップページ
>
:
-
>
:
E
>
:
Ruby
>
:intersect?
別のキーワード
open3 popen2e
socket af_e164
open3 capture2e
matrix det_e
matrix rank_e
ライブラリ
ビルトイン
(3)
クラス
Array
(3)
検索結果
先頭1件
Array
#
intersect?(other) -> bool
Array
#
intersect?(other) -> bool
(24406.0)
3.1
3.2
3.3
インスタンスメソッド
other と共通の要素が少なくとも1個あれば true を、なければ false を返します。
...
oth
e
r と共通の要素が少なくとも1個あれば tru
e
を、なければ fals
e
を返します。
//
e
mlist[例][
ruby
]{
a = [ 1, 2, 3 ]
b = [ 3, 4, 5 ]
c = [ 5, 6, 7 ]
a.
intersect?
(b) # => tru
e
a.
intersect?
(c) # => fals
e
//}
...
Array