ックを省略した場合は n 要素ずつ繰り返す Enumerator を返します。 @param n 区切る要素数を示す整数です。 //emlist[例][ruby]{ (1..10).each_slice(3) {|a| p a}
確定! 回上一頁