2010-11-09 Enumerableのzip ruby プログラミング言語 Ruby リファレンスマニュアル 引数に渡した配列の各要素からなる配列の配列を生成して返します。 p [1,2,3].zip([4,5,6]) => [[1, 4], [2, 5]]