D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Enumerable
/
Filename :
drop_while-i.ri
back
Copy
U:RDoc::AnyMethod[iI"drop_while:ETI"Enumerable#drop_while;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"CCalls the block with successive elements as long as the block ;TI"returns a truthy value; ;TI"7returns an array of all elements after that point:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"/(1..4).drop_while{|i| i < 3 } # => [3, 4] ;TI""h = {foo: 0, bar: 1, baz: 2} ;TI"Ca = h.drop_while{|element| key, value = *element; value < 2 } ;TI"a # => [[:baz, 2]] ;T:@format0o; ; [I"0With no block given, returns an Enumerator.;T: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"Tdrop_while {|element| ... } -> array drop_while -> enumerator ;T0[ I"();T@FI"Enumerable;TcRDoc::NormalModule00