Skip to main content

interface HashSet.NonEmpty<T>

A non-empty type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the HashSet API documentation

Type parameters

NameDescription
Tthe value type
note
  • The HashSet uses the context's hasher instance to hash keys for performance. - The HashSet uses the context's eq function to determine equivalence between keys.
example
const s1 = HashSet.empty<string>()
const s2 = HashSet.of('a', 'b', 'c')