Skip to main content

interface SortedMultiSet.NonEmpty<T>

A type-invariant immutable MultiSet of value type T. In the MultiSet, each value can occur multiple times. See the MultiSet documentation and the SortedMultiSet API documentation

Extends: Streamable.NonEmpty<T>, SortedMultiSet<T>

Type parameters

NameDescription
Tthe value type
note
  • The SortedMultiSet uses the contexts' SortedMap mapContext to sort the values.
example
const s1 = SortedMultiSet.empty<string>()
const s2 = SortedMultiSet.of('a', 'b', 'a', 'c')

Methods

stream

undocumented

Definition

stream(options?: {
      reversed?: boolean;
    }): Stream.NonEmpty<T>;

Parameters

NameTypeDescription
options{
      reversed?: boolean;
    }

Overrides

NonEmpty.stream, SortedMultiSet.stream