partition

open fun <T> partition(items: Iterable<T>, predicate: Spec<in T>): Pair<Collection<T>, Collection<T>>(source)

Partition given Collection into a Pair of Collections.

Left
Collection containing entries that satisfy the given predicate
Right
Collection containing entries that do NOT satisfy the given predicate