class Empty<T>
undocumented
Extends: EmptyBase
Type parameters
| Name | Default | Description |
|---|---|---|
| T | any | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextDefinition
readonly context: ListContext;
isEmpty
Returns true since the collection is empty.
isEmptytrue since the collection is empty.length
Returns 0 for the length of the collection.
length0 for the length of the collection.size
Returns 0 for the size of the collection.
size0 for the size of the collection.Methods
[Symbol.iterator]
Returns an empty iterator.
[Symbol.iterator]append
undocumented
appendassumeNonEmpty
Throws a RimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.
assumeNonEmptyRimbuError.EmptyCollectionAssumedNonEmptyError, since the collection is empty.concat
undocumented
concatDefinition
concat<T2>(...sources: ArrayNonEmpty<StreamSource<T2>>): any;
Type parameters
| Name | Description |
|---|---|
| T2 |
Parameters
| Name | Type | Description |
|---|---|---|
sources | ArrayNonEmpty<StreamSource<T2>> |
filter
undocumented
filterfirst
undocumented
firstforEach
Performs no action, since there are no elements.
forEachget
undocumented
getinsert
undocumented
insertDefinition
insert(index: number, values: StreamSource<T>): any;
Parameters
| Name | Type | Description |
|---|---|---|
index | number | |
values | StreamSource<T> |
last
undocumented
lastnonEmpty
Returns false, keeping the type narrowed to the empty variant.
nonEmptyfalse, keeping the type narrowed to the empty variant.padTo
undocumented
padToprepend
undocumented
prependremove
undocumented
removesplice
undocumented
spliceDefinition
splice(options: {
insert?: StreamSource<T>;
}): any;
Parameters
| Name | Type | Description |
|---|---|---|
options | {insert?: StreamSource<T>;} |
stream
Returns an empty Stream.
streamStream.toArray
undocumented
toArray