grouped

trait Collection[A] {
  def grouped(m: Int): Iterator[Collection[A]]
}

grouped splits this collection in smaller subcollections of, as much, m elements and returns an Iterator to iterate them.