配列を任意の個数で分割する
code:ruby
1,2,3,4,5,6,7,8,9,10.each_slice(3).to_a
#=> 0, 1, 2], 3, 4, 5, 6, 7, 8, [9, 10
? Ruby: 配列を任意の個数で分割する
#配列