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
Definition
forEach(f: (value: T, index: number, halt: () => void) => void, options: {
reversed: boolean;
state:
TraverseState
;
}): void;
Parameters
Name | Type | Description |
---|---|---|
f | (value: T, index: number, halt: () => void) => void | |
options | { reversed: boolean; state: TraverseState ; } |
Overrides
get
undocumented
get
getChild
undocumented
getChild
getCoordinates
undocumented
getCoordinates
map
undocumented
map
Definition
map<T2>(mapFun: (value: T, index: number) => T2, options?: {
reversed?: boolean;
indexOffset?: number;
}):
NonLeafBlock
<T2,
Block
<T2>>;
Type parameters
Name | Description |
---|---|
T2 |
Parameters
Name | Type | Description |
---|---|---|
mapFun | (value: T, index: number) => T2 | |
options | { reversed?: boolean; indexOffset?: number; } |
Overrides
mapPure
undocumented
mapPure
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(options?: {
reversed?: boolean;
}):
Stream.NonEmpty
<T>;
Parameters
Name | Type | Description |
---|---|---|
options | { 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