Package-level declarations

Types

Link copied to clipboard

A set that is guaranteed to contain at least one element.

Link copied to clipboard

Foldable instance for NonEmptySet, visiting the elements in insertion order.

Link copied to clipboard

Foldable1 instance for NonEmptySet, reducing the elements in insertion order.

Functions

Link copied to clipboard
fun <A> nonEmptySetOf(head: A, vararg tail: A): NonEmptySet<A>

Creates a NonEmptySet from head and further tail elements.

Link copied to clipboard

Converts this NonEmptyList to a NonEmptySet, dropping duplicates.

Link copied to clipboard

Converts this Set to a NonEmptySet, or null when it is empty.