るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. _builtin uniq
  2. array uniq
  3. array uniq!
  4. _builtin uniq!
  5. enumerable uniq

検索結果

Method#hash -> Integer (31.0)

自身のハッシュ値を返します。

...自身のハッシュ値を返します。


//emlist[例][ruby]{
a = method(:==)
b = method(:eql?)
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}...