Hi,

In message "[ruby-talk:6980] Re: parallel array traversal"
    on 00/12/10, Raja S. <raja / cs.indiana.edu> writes:

|matz> How about something like
|matz>  [a1, a2, a3].zip do |x, y, z|
|matz>     ...
|matz>  end
|matz> which do not create unnecessary objects?  There might be better name
|matz> for this method.
|
|Seems reasonable.  The semantics issue of:
|
|(1) do we stop iterating once the smallest segment ends  (Common Lisp, Python)
|(2) iterate for the longest segment and pad the smaller ones with nil (???)
|(3) consider it an error for the sequences to be of different sizes (Scheme)
|
|I'd go for option (1)
|
|The name is also an important issue. #foreach is a possibility (used in Dir
|and IO though with a different intention) and would be similar to #each.

Are there anyone volunteer to come up with a prototype or make up
a proposal for next version Ruby?

							matz.