class NonLeafBlock<T,C>
undocumented
Implements: Block<T,TS,C>
, NonLeaf<T,C>
Type parameters
Name | Constraints | Description |
---|---|---|
T | undocumented | |
C | Block <T, C> | undocumented |
Properties
canAddChild
undocumented
canAddChild
children
undocumented
children
childrenInMin
undocumented
childrenInMin
context
undocumented
context
length
undocumented
length
level
undocumented
level
Methods
_mutateRebalance
undocumented
_mutateRebalance
Definition
_mutateRebalance():
NonLeafBlock
<T, C>;
_mutateSplitRight
undocumented
_mutateSplitRight
Definition
_mutateSplitRight(childIndex?: number):
NonLeafBlock
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
childIndex | number |
Overrides
append
undocumented
append
appendInternal
undocumented
appendInternal
Definition
appendInternal(child: C):
NonLeafBlock
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
child | C |
Overrides
concat
undocumented
concat
concatBlock
undocumented
concatBlock
Definition
concatBlock(other:
NonLeafBlock
<T, C>):
NonLeaf
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
other | NonLeafBlock <T, C> |
concatChildren
undocumented
concatChildren
Definition
concatChildren(other:
NonLeafBlock
<T, C>):
NonLeafBlock
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
other | NonLeafBlock <T, C> |
Overrides
concatTree
undocumented
concatTree
Definition
concatTree(other:
NonLeafTree
<T, C>):
NonLeaf
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
other | NonLeafTree <T, C> |
copy
undocumented
copy
Definition
copy(children: readonly C[], length?: number):
NonLeafBlock
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
children | readonly C[] | |
length | number |
Overrides
copy2
undocumented
copy2
createBlockBuilder
undocumented
createBlockBuilder
createNonLeafBuilder
undocumented
createNonLeafBuilder
dropChildren
undocumented
dropChildren
Definition
dropChildren(childAmount: number):
NonLeafBlock
<T, C>
|
null;
Parameters
Name | Type | Description |
---|---|---|
childAmount | number |
dropFirst
undocumented
dropFirst
dropInternal
undocumented
dropInternal
Definition
dropInternal(amount: number): [
NonLeafBlock
<T, C>
|
null, C, number];
Parameters
Name | Type | Description |
---|---|---|
amount | number |
Overrides
dropLast
undocumented
dropLast
forEach
undocumented
forEach
get
undocumented
get
getChild
undocumented
getChild
getCoordinates
undocumented
getCoordinates
map
undocumented
map
mapPure
undocumented
mapPure
Definition
mapPure<T2>(mapFun: (value: T) => T2, reversed?: boolean, cacheMap?: import("@rimbu/list/custom").
CacheMap
):
NonLeafBlock
<T2,
Block
<T2>>;
Type parameters
Name | Description |
---|---|
T2 |
Parameters
Name | Type | Description |
---|---|---|
mapFun | (value: T) => T2 | |
reversed | boolean | |
cacheMap | import("@rimbu/list/custom"). CacheMap |
Overrides
prepend
undocumented
prepend
prependInternal
undocumented
prependInternal
Definition
prependInternal(child: C):
NonLeafBlock
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
child | C |
Overrides
reversed
undocumented
reversed
stream
undocumented
stream
Definition
stream(reversed?: boolean):
Stream.NonEmpty
<T>;
Parameters
Name | Type | Description |
---|---|---|
reversed | boolean |
Overrides
streamRange
undocumented
streamRange
structure
undocumented
structure
takeChildren
undocumented
takeChildren
Definition
takeChildren(childAmount: number):
NonLeafBlock
<T, C>
|
null;
Parameters
Name | Type | Description |
---|---|---|
childAmount | number |
takeInternal
undocumented
takeInternal
Definition
takeInternal(amount: number): [
NonLeafBlock
<T, C>
|
null, C, number];
Parameters
Name | Type | Description |
---|---|---|
amount | number |
Overrides
toArray
undocumented
toArray
updateAt
undocumented
updateAt
Definition
updateAt(index: number, update: Update<T>):
NonLeafBlock
<T, C>;
Parameters
Name | Type | Description |
---|---|---|
index | number | |
update | Update<T> |