PartitionExtension<T> extension

on

Methods

partition(bool condition(T element)) Iterable<Iterable<T>>
Returns an iterable containing two iterables, one containing the elements that match the condition and one containing those that do not.