gradle
8.6

# partition

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

Partition given Collection into a Pair of Collections.

    Left

Content copied to clipboard
Collection containing entries that satisfy the given predicate

    Right

Content copied to clipboard
Collection containing entries that do NOT satisfy the given predicate