class SortedMapInner<K,V>
undocumented
Extends: SortedMapNode<K,V>
Type parameters
Name | Description |
---|---|
K | undocumented |
V | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyType
children
undocumented
children
Definition
children: readonly
SortedMapNode
<K, V>[];
context
undocumented
context
mutateChildren
undocumented
mutateChildren
Definition
get mutateChildren():
SortedMapNode
<K, V>[];
size
undocumented
size
Methods
addEntries
undocumented
addEntries
Definition
addEntries(entries:
StreamSource
<readonly [K, V]>): SortedMap.NonEmpty<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entries | StreamSource <readonly [K, V]> |
Overrides
addEntry
undocumented
addEntry
addInternal
undocumented
addInternal
Definition
addInternal(entry: readonly [K, V]):
SortedMapInner
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entry | readonly [K, V] |
Overrides
asNormal
undocumented
asNormal
copy
undocumented
copy
Definition
copy(entries?: readonly (readonly [K, V])[], children?: readonly
SortedMapNode
<K, V>[], size?: number):
SortedMapInner
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
entries | readonly (readonly [K, V])[] | |
children | readonly SortedMapNode <K, V>[] | |
size | number |
deleteMax
undocumented
deleteMax
Definition
deleteMax(): [readonly [K, V],
SortedMapInner
<K, V>];
deleteMin
undocumented
deleteMin
Definition
deleteMin(): [readonly [K, V],
SortedMapInner
<K, V>];
drop
undocumented
drop
dropInternal
undocumented
dropInternal
Definition
dropInternal(amount: number):
SortedMapNode
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
amount | number |
filter
undocumented
filter
findIndex
undocumented
findIndex
forEach
undocumented
forEach
Definition
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
get
getAtIndex
undocumented
getAtIndex
getInsertIndexOf
undocumented
getInsertIndexOf
getKeyAtIndex
undocumented
getKeyAtIndex
getSliceRange
undocumented
getSliceRange
getValueAtIndex
undocumented
getValueAtIndex
hasKey
undocumented
hasKey
mapValues
undocumented
mapValues
Definition
mapValues<V2>(mapFun: (value: V, key: K) => V2):
SortedMapInner
<K, V2>;
Type parameters
Name | Description |
---|---|
V2 |
Parameters
Name | Type | Description |
---|---|---|
mapFun | (value: V, key: K) => V2 |
Overrides
max
undocumented
max
maxKey
undocumented
maxKey
maxValue
undocumented
maxValue
min
undocumented
min
minKey
undocumented
minKey
minValue
undocumented
minValue
modifyAt
undocumented
modifyAt
modifyAtInternal
undocumented
modifyAtInternal
Definition
modifyAtInternal(key: K, options: {
ifNew?:
OptLazyOr
<V, Token>;
ifExists?: ((currentEntry: V, remove: Token) => V
|
Token)
|
V;
}):
SortedMapInner
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
key | K | |
options | { ifNew?: OptLazyOr <V, Token>; ifExists?: ((currentEntry: V, remove: Token) => V | Token) | V; } |
Overrides
mutateGetFromLeft
undocumented
mutateGetFromLeft
Definition
mutateGetFromLeft(left:
SortedMapInner
<K, V>, toMe: readonly [K, V]): [readonly [K, V],
SortedMapInner
<K, V>];
Parameters
Name | Type | Description |
---|---|---|
left | SortedMapInner <K, V> | |
toMe | readonly [K, V] |
mutateGetFromRight
undocumented
mutateGetFromRight
Definition
mutateGetFromRight(right:
SortedMapInner
<K, V>, toMe: readonly [K, V]): [readonly [K, V],
SortedMapInner
<K, V>];
Parameters
Name | Type | Description |
---|---|---|
right | SortedMapInner <K, V> | |
toMe | readonly [K, V] |
mutateGiveToLeft
undocumented
mutateGiveToLeft
Definition
mutateGiveToLeft(left:
SortedMapInner
<K, V>, toLeft: readonly [K, V]): [readonly [K, V],
SortedMapInner
<K, V>];
Parameters
Name | Type | Description |
---|---|---|
left | SortedMapInner <K, V> | |
toLeft | readonly [K, V] |
mutateGiveToRight
undocumented
mutateGiveToRight
Definition
mutateGiveToRight(right:
SortedMapInner
<K, V>, toRight: readonly [K, V]): [readonly [K, V],
SortedMapInner
<K, V>];
Parameters
Name | Type | Description |
---|---|---|
right | SortedMapInner <K, V> | |
toRight | readonly [K, V] |
mutateJoinLeft
undocumented
mutateJoinLeft
Definition
mutateJoinLeft(left:
SortedMapInner
<K, V>, entry: readonly [K, V]): void;
Parameters
Name | Type | Description |
---|---|---|
left | SortedMapInner <K, V> | |
entry | readonly [K, V] |
mutateJoinRight
undocumented
mutateJoinRight
Definition
mutateJoinRight(right:
SortedMapInner
<K, V>, entry: readonly [K, V]): void;
Parameters
Name | Type | Description |
---|---|---|
right | SortedMapInner <K, V> | |
entry | readonly [K, V] |
mutateSplitRight
undocumented
mutateSplitRight
Definition
mutateSplitRight(index?: number): [readonly [K, V],
SortedMapInner
<K, V>];
Parameters
Name | Type | Description |
---|---|---|
index | number |
normalize
undocumented
normalize
normalizeDownsizeChild
undocumented
normalizeDownsizeChild
Definition
normalizeDownsizeChild(childIndex: number, newChild:
SortedMapNode
<K, V>, newSize: number):
SortedMapInner
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
childIndex | number | |
newChild | SortedMapNode <K, V> | |
newSize | number |
normalizeIncreaseChild
undocumented
normalizeIncreaseChild
Definition
normalizeIncreaseChild(childIndex: number, newChild:
SortedMapNode
<K, V>, newSize: number):
SortedMapInner
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
childIndex | number | |
newChild | SortedMapNode <K, V> | |
newSize | number |
removeKey
undocumented
removeKey
removeKeyAndGet
undocumented
removeKeyAndGet
removeKeys
undocumented
removeKeys
Definition
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
set
slice
undocumented
slice
sliceIndex
undocumented
sliceIndex
stream
undocumented
stream
Definition
stream(options?: {
reversed?: boolean;
}):
Stream.NonEmpty
<readonly [K, V]>;
Parameters
Name | Type | Description |
---|---|---|
options | { reversed?: boolean; } |
Overrides
streamKeys
undocumented
streamKeys
Definition
streamKeys(options?: {
reversed?: boolean;
}):
Stream.NonEmpty
<K>;
Parameters
Name | Type | Description |
---|---|---|
options | { reversed?: boolean; } |
Overrides
streamRange
undocumented
streamRange
streamSliceIndex
undocumented
streamSliceIndex
streamValues
undocumented
streamValues
Definition
streamValues(options?: {
reversed?: boolean;
}):
Stream.NonEmpty
<V>;
Parameters
Name | Type | Description |
---|---|---|
options | { reversed?: boolean; } |
Overrides
take
undocumented
take
takeInternal
undocumented
takeInternal
Definition
takeInternal(amount: number):
SortedMapNode
<K, V>;
Parameters
Name | Type | Description |
---|---|---|
amount | number |
toArray
undocumented
toArray
toBuilder
undocumented
toBuilder
toJSON
undocumented
toJSON
toString
undocumented
toString