From: "mame (Yusuke Endoh)" Date: 2012-07-23T23:05:57+09:00 Subject: [ruby-core:46656] [ruby-trunk - Feature #6499][Rejected] Array::zip Issue #6499 has been updated by mame (Yusuke Endoh). Status changed from Assigned to Rejected Ilya Vorontsov and Clay Trump, Sorry but this proposal was rejected at the developer meeting (7/21). Here is a discussion summary: * Matz was NOT positive to this kind of proposals that is for the sake of symmetric notation. * Matz wants to save those who want Enumerator-version of Array#zip and product, but it does not require the new-style API. We should discuss it as another request. * The behavior of Array.zip(*ary) is not trivial if ary == []. The spec candidates are: - returns an array whose size is the same as the first element, or - returns an array whose size is the same as the shortest element If ary == [], both do not make sense because neither the first element or the shortest one exist. It may be intuitive to return an infinite array: [[], [], [], ...] -- Yusuke Endoh ---------------------------------------- Feature #6499: Array::zip https://bugs.ruby-lang.org/issues/6499#change-28322 Author: prijutme4ty (Ilya Vorontsov) Status: Rejected Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: 2.0.0 Sometimes it's more natural to have Array::zip rather than Array#zip. Otherwise first array of list became unnecessary dedicated For example cols = first_row.zip(second_row,third_row,fourth_row) have more natural analog: cols = Array.zip(first_row,second_row,third_row,fourth_row) Implementation is obvious: def Array.zip(first,*rest) first.zip(*rest) end -- http://bugs.ruby-lang.org/