HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Array/zip-i.ri
U:RDoc::AnyMethod[iI"zip:ETI"Array#zip;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"VWhen no block given, returns a new \Array +new_array+ of size <tt>self.size</tt> ;TI"whose elements are Arrays.;To:RDoc::Markup::BlankLineo;
;	[I"VEach nested array <tt>new_array[n]</tt> is of size <tt>other_arrays.size+1</tt>, ;TI"and contains:;To:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;	[o;
;	[I"!The _nth_ element of +self+.;To;;0;	[o;
;	[I"5The _nth_ element of each of the +other_arrays+.;T@o;
;	[I"8If all +other_arrays+ and +self+ are the same size:;To:RDoc::Markup::Verbatim;	[
I"a = [:a0, :a1, :a2, :a3]
;TI"b = [:b0, :b1, :b2, :b3]
;TI"c = [:c0, :c1, :c2, :c3]
;TI"d = a.zip(b, c)
;TI"Qd # => [[:a0, :b0, :c0], [:a1, :b1, :c1], [:a2, :b2, :c2], [:a3, :b3, :c3]]
;T:@format0o;
;	[I"<If any array in +other_arrays+ is smaller than +self+, ;TI",fills to <tt>self.size</tt> with +nil+:;To;;	[
I"a = [:a0, :a1, :a2, :a3]
;TI"b = [:b0, :b1, :b2]
;TI"c = [:c0, :c1]
;TI"d = a.zip(b, c)
;TI"Qd # => [[:a0, :b0, :c0], [:a1, :b1, :c1], [:a2, :b2, nil], [:a3, nil, nil]]
;T;0o;
;	[I";If any array in +other_arrays+ is larger than +self+, ;TI"'its trailing elements are ignored:;To;;	[
I"a = [:a0, :a1, :a2, :a3]
;TI"#b = [:b0, :b1, :b2, :b3, :b4]
;TI"(c = [:c0, :c1, :c2, :c3, :c4, :c5]
;TI"d = a.zip(b, c)
;TI"Qd # => [[:a0, :b0, :c0], [:a1, :b1, :c1], [:a2, :b2, :c2], [:a3, :b3, :c3]]
;T;0o;
;	[I"fWhen a block is given, calls the block with each of the sub-arrays (formed as above); returns nil;To;;	[	I"a = [:a0, :a1, :a2, :a3]
;TI"b = [:b0, :b1, :b2, :b3]
;TI"c = [:c0, :c1, :c2, :c3]
;TI"4a.zip(b, c) {|sub_array| p sub_array} # => nil
;T;0o;
;	[I"Output:;To;;	[	I"[:a0, :b0, :c0]
;TI"[:a1, :b1, :c1]
;TI"[:a2, :b2, :c2]
;TI"[:a3, :b3, :c3];T;0:
@fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"`array.zip(*other_arrays) -> new_array
array.zip(*other_arrays) {|other_array| ... } -> nil
;T0[I"(*args);T@RFI"
Array;TcRDoc::NormalClass00