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
canAddChildchildren
undocumented
childrenchildrenInMin
undocumented
childrenInMincontext
undocumented
contextlength
undocumented
lengthlevel
undocumented
levelMethods
_mutateRebalance
undocumented
_mutateRebalanceDefinition
_mutateRebalance(): NonLeafBlock<T, C>;
_mutateSplitRight
undocumented
_mutateSplitRightDefinition
_mutateSplitRight(childIndex?: number): NonLeafBlock<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
childIndex | number |
Overrides
append
undocumented
appendappendInternal
undocumented
appendInternalDefinition
appendInternal(child: C): NonLeafBlock<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
child | C |
Overrides
concat
undocumented
concatconcatBlock
undocumented
concatBlockDefinition
concatBlock(other: NonLeafBlock<T, C>): NonLeaf<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
other | NonLeafBlock<T, C> |
concatChildren
undocumented
concatChildrenDefinition
concatChildren(other: NonLeafBlock<T, C>): NonLeafBlock<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
other | NonLeafBlock<T, C> |
Overrides
concatTree
undocumented
concatTreeDefinition
concatTree(other: NonLeafTree<T, C>): NonLeaf<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
other | NonLeafTree<T, C> |
copy
undocumented
copyDefinition
copy(children: readonly C[], length?: number): NonLeafBlock<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
children | readonly C[] | |
length | number |
Overrides
copy2
undocumented
copy2createBlockBuilder
undocumented
createBlockBuildercreateNonLeafBuilder
undocumented
createNonLeafBuilderdropChildren
undocumented
dropChildrenDefinition
dropChildren(childAmount: number): NonLeafBlock<T, C> | null;
Parameters
| Name | Type | Description |
|---|---|---|
childAmount | number |
dropFirst
undocumented
dropFirstdropInternal
undocumented
dropInternalDefinition
dropInternal(amount: number): [NonLeafBlock<T, C> | null, C, number];
Parameters
| Name | Type | Description |
|---|---|---|
amount | number |
Overrides
dropLast
undocumented
dropLastforEach
undocumented
forEachDefinition
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
getgetChild
undocumented
getChildgetCoordinates
undocumented
getCoordinatesmap
undocumented
mapDefinition
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
mapPureprepend
undocumented
prependprependInternal
undocumented
prependInternalDefinition
prependInternal(child: C): NonLeafBlock<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
child | C |
Overrides
reversed
undocumented
reversedstream
undocumented
streamDefinition
stream(options?: {
reversed?: boolean;
}): Stream.NonEmpty<T>;
Parameters
| Name | Type | Description |
|---|---|---|
options | {reversed?: boolean;} |
Overrides
streamRange
undocumented
streamRangestructure
undocumented
structuretakeChildren
undocumented
takeChildrenDefinition
takeChildren(childAmount: number): NonLeafBlock<T, C> | null;
Parameters
| Name | Type | Description |
|---|---|---|
childAmount | number |
takeInternal
undocumented
takeInternalDefinition
takeInternal(amount: number): [NonLeafBlock<T, C> | null, C, number];
Parameters
| Name | Type | Description |
|---|---|---|
amount | number |
Overrides
toArray
undocumented
toArray