hash()
public
Compute a hash-code for this array. Two arrays with the same content will
have the same hash code (and will compare
using eql?).
Show source
/*
* call-seq:
* array.hash -> fixnum
*
* Compute a hash-code for this array. Two arrays with the same content
* will have the same hash code (and will compare using <code>eql?</code>).
*/
static VALUE
rb_ary_hash(ary)
VALUE ary;
{
return rb_exec_recursive(recursive_hash, ary, 0);
}