From: ruby-core@... Date: 2014-03-01T18:41:17+00:00 Subject: [ruby-core:61188] [ruby-trunk - Feature #6499] Array::zip Issue #6499 has been updated by Marc-Andre Lafortune. Duplicates Feature #8970: Array.zip and Array.product added ---------------------------------------- Feature #6499: Array::zip https://bugs.ruby-lang.org/issues/6499#change-45547 * Author: Ilya Vorontsov * Status: Rejected * Priority: Normal * Assignee: 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 ---Files-------------------------------- array_product_zip.pdf (53.9 KB) -- http://bugs.ruby-lang.org/