るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. openssl n=
  3. openssl n
  4. rsa n=
  5. rsa n

ライブラリ

クラス

検索結果

Set#disjoint?(set) -> bool (72640.0)

self と set が互いに素な集合である場合に true を返します。

self と set が互いに素な集合である場合に true を返します。

逆に self と set の共通集合かを確認する場合には Set#intersect? を
使用します。

@param self Set オブジェクトを指定します。
@raise ArgumentError 引数が Set オブジェクトでない場合に発生します。

//emlist[][ruby]{
require 'set'
p Set[1, 2, 3].disjoint? Set[3, 4] # => false
p Set[1, 2, 3].disjoint? Set[4, 5] # => true
//}...