PartitionIterableExtension<E> extension
Methods
-
partition(bool test(E element))
→ ({List<E> falsey, List<E> truthy})
-
Available on Iterable<E>,
provided by the PartitionIterableExtension extension
Splits this iterable into two lists: the truthy list where the test predicate
is true and the falsey list where the test predicate is false.