class SortedMapLeaf<K,V>
undocumented
Extends: SortedMapNode<K,V>
Type parameters
| Name | Description |
|---|---|
| K | undocumented |
| V | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextsize
undocumented
sizeMethods
addEntries
undocumented
addEntriesDefinition
addEntries(entries: StreamSource<readonly [K, V]>): SortedMap.NonEmpty<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
entries | StreamSource<readonly [K, V]> |
Overrides
addEntry
undocumented
addEntryaddInternal
undocumented
addInternalDefinition
addInternal(entry: readonly [K, V]): SortedMapNode<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
entry | readonly [K, V] |
Overrides
asNormal
undocumented
asNormalcopy
undocumented
copyDefinition
copy(entries: readonly (readonly [K, V])[]): SortedMapLeaf<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
entries | readonly (readonly [K, V])[] |
deleteMax
undocumented
deleteMaxDefinition
deleteMax(): [readonly [K, V], SortedMapLeaf<K, V>];
deleteMin
undocumented
deleteMinDefinition
deleteMin(): [readonly [K, V], SortedMapLeaf<K, V>];
drop
undocumented
dropdropInternal
undocumented
dropInternalDefinition
dropInternal(amount: number): SortedMapLeaf<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
amount | number |
filter
undocumented
filterfindIndex
undocumented
findIndexforEach
undocumented
forEachDefinition
forEach(f: (entry: readonly [K, V], index: number, halt: () => void) => void, options?: {
state?: TraverseState;
}): void;
Parameters
| Name | Type | Description |
|---|---|---|
f | (entry: readonly [K, V], index: number, halt: () => void) => void | |
options | {state?: TraverseState;} |
Overrides
get
undocumented
getgetAtIndex
undocumented
getAtIndexgetInsertIndexOf
undocumented
getInsertIndexOfgetKeyAtIndex
undocumented
getKeyAtIndexgetSliceRange
undocumented
getSliceRangegetValueAtIndex
undocumented
getValueAtIndexhasKey
undocumented
hasKeymapValues
undocumented
mapValuesDefinition
mapValues<V2>(mapFun: (value: V, key: K) => V2): SortedMapLeaf<K, V2>;
Type parameters
| Name | Description |
|---|---|
| V2 |
Parameters
| Name | Type | Description |
|---|---|---|
mapFun | (value: V, key: K) => V2 |
Overrides
max
undocumented
maxmaxKey
undocumented
maxKeymaxValue
undocumented
maxValuemin
undocumented
minminKey
undocumented
minKeyminValue
undocumented
minValuemodifyAt
undocumented
modifyAtmodifyAtInternal
undocumented
modifyAtInternalDefinition
modifyAtInternal(key: K, options: {
ifNew?: OptLazyOr<V, Token>;
ifExists?: ((currentEntry: V, remove: Token) => V |Token)| V;
}): SortedMapNode<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
key | K | |
options | {ifNew?: OptLazyOr<V, Token>;ifExists?: ((currentEntry: V, remove: Token) => V |Token)| V;} |
Overrides
mutateGetFromLeft
undocumented
mutateGetFromLeftDefinition
mutateGetFromLeft(left: SortedMapLeaf<K, V>, toMe: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>];
Parameters
| Name | Type | Description |
|---|---|---|
left | SortedMapLeaf<K, V> | |
toMe | readonly [K, V] |
mutateGetFromRight
undocumented
mutateGetFromRightDefinition
mutateGetFromRight(right: SortedMapLeaf<K, V>, toMe: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>];
Parameters
| Name | Type | Description |
|---|---|---|
right | SortedMapLeaf<K, V> | |
toMe | readonly [K, V] |
mutateGiveToLeft
undocumented
mutateGiveToLeftDefinition
mutateGiveToLeft(left: SortedMapLeaf<K, V>, toLeft: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>];
Parameters
| Name | Type | Description |
|---|---|---|
left | SortedMapLeaf<K, V> | |
toLeft | readonly [K, V] |
mutateGiveToRight
undocumented
mutateGiveToRightDefinition
mutateGiveToRight(right: SortedMapLeaf<K, V>, toRight: readonly [K, V]): [readonly [K, V], SortedMapLeaf<K, V>];
Parameters
| Name | Type | Description |
|---|---|---|
right | SortedMapLeaf<K, V> | |
toRight | readonly [K, V] |
mutateJoinLeft
undocumented
mutateJoinLeftDefinition
mutateJoinLeft(left: SortedMapLeaf<K, V>, entry: readonly [K, V]): void;
Parameters
| Name | Type | Description |
|---|---|---|
left | SortedMapLeaf<K, V> | |
entry | readonly [K, V] |
mutateJoinRight
undocumented
mutateJoinRightDefinition
mutateJoinRight(right: SortedMapLeaf<K, V>, entry: readonly [K, V]): void;
Parameters
| Name | Type | Description |
|---|---|---|
right | SortedMapLeaf<K, V> | |
entry | readonly [K, V] |
mutateSplitRight
undocumented
mutateSplitRightDefinition
mutateSplitRight(index?: number): [readonly [K, V], SortedMapLeaf<K, V>];
Parameters
| Name | Type | Description |
|---|---|---|
index | number |
normalize
undocumented
normalizeremoveKey
undocumented
removeKeyremoveKeyAndGet
undocumented
removeKeyAndGetremoveKeys
undocumented
removeKeysDefinition
removeKeys<UK>(keys: StreamSource<RelatedTo<K, UK>>): SortedMap<K, V>;
Type parameters
| Name | Description |
|---|---|
| UK |
Parameters
| Name | Type | Description |
|---|---|---|
keys | StreamSource<RelatedTo<K, UK>> |
Overrides
set
undocumented
setslice
undocumented
slicesliceIndex
undocumented
sliceIndexstream
undocumented
streamDefinition
stream(options?: {
reversed?: boolean;
}): Stream.NonEmpty<readonly [K, V]>;
Parameters
| Name | Type | Description |
|---|---|---|
options | {reversed?: boolean;} |
Overrides
streamKeys
undocumented
streamKeysDefinition
streamKeys(options?: {
reversed?: boolean;
}): Stream.NonEmpty<K>;
Parameters
| Name | Type | Description |
|---|---|---|
options | {reversed?: boolean;} |
Overrides
streamRange
undocumented
streamRangestreamSliceIndex
undocumented
streamSliceIndexstreamValues
undocumented
streamValuesDefinition
streamValues(options?: {
reversed?: boolean;
}): Stream.NonEmpty<V>;
Parameters
| Name | Type | Description |
|---|---|---|
options | {reversed?: boolean;} |
Overrides
take
undocumented
taketakeInternal
undocumented
takeInternalDefinition
takeInternal(amount: number): SortedMapLeaf<K, V>;
Parameters
| Name | Type | Description |
|---|---|---|
amount | number |
toArray
undocumented
toArraytoBuilder
undocumented
toBuildertoJSON
undocumented
toJSONtoString
undocumented
toString