Skip to content

group

In std/collections.

partition fn group<T, K>(self: Collection<T>, by: T -> K) : Set<Group<K, T>>

The occurrences partitioned by the key by gives each, as a set of Groups, each a key and its occurrences in input order.