Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SortedMapOpts<K>

SortedMapOpts implementation config settings.

Type parameters

  • K

Hierarchy

  • SortedMapOpts

Index

Properties

capacity

capacity: number

Initial capacity before resizing (doubling) occurs. This value will be rounded up to next pow2.

defaultvalue

8

compare

compare: Comparator<K>

Key comparison function. Must follow standard comparator contract and return:

  • negative if a < b
  • positive if a > b
  • 0 if a == b

Note: The SortedMap implementation only uses < and == style comparisons.

defaultvalue

compare

probability

probability: number

Probability for a value to exist in any express lane of the underlying Skip List implementation.

defaultvalue

1 / Math.E

Generated using TypeDoc