each_slice (p1) public. Iterates the given block for each slice of <n> elements. If no block is given, returns an enumerator. (1..10).each_slice(3) { |a| p a } ...
確定! 回上一頁