class SortedSetLeaf<T>
undocumented
Extends: SortedSetNode<T>
Type parameters
| Name | Description |
|---|---|
| T | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextsize
undocumented
sizeMethods
add
undocumented
addaddAll
undocumented
addAllDefinition
addAll(values: StreamSource<T>): SortedSet.NonEmpty<T>;
Parameters
| Name | Type | Description |
|---|---|---|
values | StreamSource<T> |
Overrides
addInternal
undocumented
addInternalasNormal
undocumented
asNormalcopy
undocumented
copyDefinition
copy(entries: readonly T[]): SortedSetLeaf<T>;
Parameters
| Name | Type | Description |
|---|---|---|
entries | readonly T[] |
deleteMax
undocumented
deleteMaxDefinition
deleteMax(): [T, SortedSetLeaf<T>];
deleteMin
undocumented
deleteMinDefinition
deleteMin(): [T, SortedSetLeaf<T>];
difference
undocumented
differenceDefinition
difference(other: StreamSource<T>): SortedSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
Overrides
drop
undocumented
dropdropInternal
undocumented
dropInternalDefinition
dropInternal(amount: number): SortedSetLeaf<T>;
Parameters
| Name | Type | Description |
|---|---|---|
amount | number |
filter
undocumented
filterfindIndex
undocumented
findIndexforEach
undocumented
forEachDefinition
forEach(f: (value: T, index: number, halt: () => void) => void, options?: {
state?: TraverseState;
}): void;
Parameters
| Name | Type | Description |
|---|---|---|
f | (value: T, index: number, halt: () => void) => void | |
options | {state?: TraverseState;} |
Overrides
getAtIndex
undocumented
getAtIndexgetInsertIndexOf
undocumented
getInsertIndexOfgetSliceRange
undocumented
getSliceRangehas
undocumented
hasintersect
undocumented
intersectDefinition
intersect(other: StreamSource<T>): SortedSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
Overrides
max
undocumented
maxmin
undocumented
minmutateGetFromLeft
undocumented
mutateGetFromLeftDefinition
mutateGetFromLeft(left: SortedSetLeaf<T>, toMe: T): [T, SortedSetLeaf<T>];
Parameters
| Name | Type | Description |
|---|---|---|
left | SortedSetLeaf<T> | |
toMe | T |
mutateGetFromRight
undocumented
mutateGetFromRightDefinition
mutateGetFromRight(right: SortedSetLeaf<T>, toMe: T): [T, SortedSetLeaf<T>];
Parameters
| Name | Type | Description |
|---|---|---|
right | SortedSetLeaf<T> | |
toMe | T |
mutateGiveToLeft
undocumented
mutateGiveToLeftDefinition
mutateGiveToLeft(left: SortedSetLeaf<T>, toLeft: T): [T, SortedSetLeaf<T>];
Parameters
| Name | Type | Description |
|---|---|---|
left | SortedSetLeaf<T> | |
toLeft | T |
mutateGiveToRight
undocumented
mutateGiveToRightDefinition
mutateGiveToRight(right: SortedSetLeaf<T>, toRight: T): [T, SortedSetLeaf<T>];
Parameters
| Name | Type | Description |
|---|---|---|
right | SortedSetLeaf<T> | |
toRight | T |
mutateJoinLeft
undocumented
mutateJoinLeftDefinition
mutateJoinLeft(left: SortedSetLeaf<T>, entry: T): void;
Parameters
| Name | Type | Description |
|---|---|---|
left | SortedSetLeaf<T> | |
entry | T |
mutateJoinRight
undocumented
mutateJoinRightDefinition
mutateJoinRight(right: SortedSetLeaf<T>, entry: T): void;
Parameters
| Name | Type | Description |
|---|---|---|
right | SortedSetLeaf<T> | |
entry | T |
mutateSplitRight
undocumented
mutateSplitRightDefinition
mutateSplitRight(index?: number): [T, SortedSetLeaf<T>];
Parameters
| Name | Type | Description |
|---|---|---|
index | number |
normalize
undocumented
normalizeremove
undocumented
removeremoveAll
undocumented
removeAllDefinition
removeAll<U>(values: StreamSource<RelatedTo<T, U>>): SortedSet<T>;
Type parameters
| Name | Description |
|---|---|
| U |
Parameters
| Name | Type | Description |
|---|---|---|
values | StreamSource<RelatedTo<T, U>> |
Overrides
removeInternal
undocumented
removeInternalDefinition
removeInternal(value: T): SortedSetNode<T>;
Parameters
| Name | Type | Description |
|---|---|---|
value | T |
Overrides
slice
undocumented
slicesliceIndex
undocumented
sliceIndexstream
undocumented
streamDefinition
stream(options?: {
reversed?: boolean;
}): Stream.NonEmpty<T>;
Parameters
| Name | Type | Description |
|---|---|---|
options | {reversed?: boolean;} |
Overrides
streamRange
undocumented
streamRangestreamSliceIndex
undocumented
streamSliceIndexsymDifference
undocumented
symDifferenceDefinition
symDifference(other: StreamSource<T>): SortedSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
Overrides
take
undocumented
taketakeInternal
undocumented
takeInternalDefinition
takeInternal(amount: number): SortedSetLeaf<T>;
Parameters
| Name | Type | Description |
|---|---|---|
amount | number |
toArray
undocumented
toArraytoBuilder
undocumented
toBuildertoJSON
undocumented
toJSONtoString
undocumented
toStringunion
undocumented
unionDefinition
union(other: StreamSource<T>): SortedSet<T> | any;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |