Skip to main content

interface OrderedSetBase<T,Tp>

undocumented

Companion namespace: OrderedSetBase

Implemented by: OrderedHashSet<T>, OrderedSetEmpty<T,Tp,TpG>, OrderedSet<T>, OrderedSortedSet<T>

Type parameters

NameConstraintsDefaultDescription
Tundocumented
TpOrderedSetBase.TypesOrderedSetBase.Typesundocumented

Properties

order

Returns a List instance containing the order of the elements.

Definition

readonly order: List<T>;

example
const s = OrderedHashSet.of('b', 'a', 'c')
console.log(s.order.toArray())
// => ['b', 'a', 'c']

sourceSet

Returns the contained Set instance.

Definition

readonly sourceSet: WithElem<Tp, T>['sourceSet'];

example
const s = OrderedHashSet.of('b', 'a', 'c')
console.log(m.sourceSet.toString())
// => HashSet('a', 'b', 'c')