If no block is given, returns an enumerator. Example. (1..10).each_slice(3) { |a| p a } # outputs below [1, 2, 3] [4, 5, 6] [7, 8, 9] [10] ...
確定! 回上一頁