BalancedGroups

Utility for splitting a collection into a balanced group of items as opposed to the unbalanced grouped method of the Scala collection API.

class Object
trait Matchable
class Any

Value members

Concrete methods

def create[A](items: Vector[A], size: Int): Vector[Vector[A]]

Creates a balanced group of items based on the given desired size.

Creates a balanced group of items based on the given desired size.