class NonLeafTree<T,C>
undocumented
Implements: NonLeaf<T,C>, Tree<T,TS,TB,C>
Type parameters
| Name | Constraints | Description |
|---|---|---|
| T | undocumented | |
| C | Block<T, C> | undocumented |
Properties
context
undocumented
contextleft
undocumented
leftlength
undocumented
lengthlevel
undocumented
levelmiddle
undocumented
middleright
undocumented
rightMethods
append
undocumented
appendappendMiddle
undocumented
appendMiddleDefinition
appendMiddle(child: NonLeafBlock<T, C>): NonLeaf<T, NonLeafBlock<T, C>>;
Parameters
| Name | Type | Description |
|---|---|---|
child | NonLeafBlock<T, C> |
Overrides
concat
undocumented
concatconcatBlock
undocumented
concatBlockDefinition
concatBlock(other: NonLeafBlock<T, C>): NonLeaf<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
other | NonLeafBlock<T, C> |
concatTree
undocumented
concatTreeDefinition
concatTree(other: NonLeafTree<T, C>): NonLeaf<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
other | NonLeafTree<T, C> |
copy
undocumented
copyDefinition
copy(left?: NonLeafBlock<T, C>, right?: NonLeafBlock<T, C>, middle?: NonLeaf<T, NonLeafBlock<T, C>> |null):NonLeafTree<T, C>;
Parameters
| Name | Type | Description |
|---|---|---|
left | NonLeafBlock<T, C> | |
right | NonLeafBlock<T, C> | |
middle | NonLeaf<T, NonLeafBlock<T, C>> | null |
Overrides
copy2
undocumented
copy2Definition
copy2<T2, C2 extends Block<T2, C2>>(left: NonLeafBlock<T2, C2>, right: NonLeafBlock<T2, C2>, middle: NonLeaf<T2, NonLeafBlock<T2, C2>> |null):NonLeafTree<T2, C2>;
Type parameters
| Name | Constraints | Description |
|---|---|---|
| T2 | ||
| C2 | Block<T2, C2> |
Parameters
| Name | Type | Description |
|---|---|---|
left | NonLeafBlock<T2, C2> | |
right | NonLeafBlock<T2, C2> | |
middle | NonLeaf<T2, NonLeafBlock<T2, C2>> | null |
createNonLeafBuilder
undocumented
createNonLeafBuilderdropFirst
undocumented
dropFirstdropInternal
undocumented
dropInternaldropLast
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
getgetChildLength
undocumented
getChildLengthmap
undocumented
mapDefinition
map<T2>(mapFun: (value: T, index: number) => T2, options?: {
reversed?: boolean;
indexOffset?: number;
}): NonLeafTree<T2, any>;
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
prependprependMiddle
undocumented
prependMiddleDefinition
prependMiddle(child: NonLeafBlock<T, C>): NonLeaf<T, NonLeafBlock<T, C>>;
Parameters
| Name | Type | Description |
|---|---|---|
child | NonLeafBlock<T, 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
structuretakeInternal
undocumented
takeInternaltoArray
undocumented
toArray