D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Hash
/
Filename :
rassoc-i.ri
back
Copy
U:RDoc::AnyMethod[iI"rassoc:ETI"Hash#rassoc;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"CReturns a new 2-element Array consisting of the key and value ;TI"Bof the first-found entry whose value is <tt>==</tt> to value ;TI"4(see {Entry Order}[rdoc-ref:Hash@Entry+Order]):;To:RDoc::Markup::Verbatim; [I""h = {foo: 0, bar: 1, baz: 1} ;TI" h.rassoc(1) # => [:bar, 1] ;T:@format0o; ; [I"*Returns +nil+ if no such value found.;T: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I",hash.rassoc(value) -> new_array or nil ;T0[ I" (p1);T@FI" Hash;TcRDoc::NormalClass00