Companion
object Companion
Functions
Link copied to clipboard
Returns a non-empty set containing each of elements, minus duplicates, in the order each appears first in the source collection.
Link copied to clipboard
Returns a singleton set containing element. This behaves the same as Collections.singleton but returns a NonEmptySet for the extra type-safety.
Returns a non-empty set containing the given elements, minus duplicates, in the order each was specified.