abstract class StreamBase<T>
undocumented
Type parameters
Name | Description |
---|---|
T | undocumented |
Methods
append
undocumented
append
collect
undocumented
collect
concat
undocumented
concat
Definition
concat(...others:
ArrayNonEmpty
<StreamSource<T>>): Stream.NonEmpty<T>;
Parameters
Name | Type | Description |
---|---|---|
others | ArrayNonEmpty <StreamSource<T>> |
contains
undocumented
contains
containsSlice
undocumented
containsSlice
countElement
undocumented
countElement
distinctPrevious
undocumented
distinctPrevious
drop
undocumented
drop
dropWhile
undocumented
dropWhile
elementAt
undocumented
elementAt
equals
undocumented
equals
every
undocumented
every
filter
undocumented
filter
filterPure
undocumented
filterPure
Definition
filterPure<A extends readonly unknown[]>(options: {
pred: (value: T, ...args: A) => boolean;
negate?: boolean
|
undefined;
}, ...args: A): any;
Type parameters
Name | Constraints | Description |
---|---|---|
A | readonly unknown[] |
Parameters
Name | Type | Description |
---|---|---|
options | { pred: (value: T, ...args: A) => boolean; negate?: boolean | undefined; } | |
args | A |
find
undocumented
find
Definition
find<O>(pred: (value: T, index: number) => boolean, options?: {
occurrance?: number
|
undefined;
negate?: boolean
|
undefined;
otherwise?:
OptLazy
<O>;
}): T
|
O;
Type parameters
Name | Description |
---|---|
O |
Parameters
Name | Type | Description |
---|---|---|
pred | (value: T, index: number) => boolean | |
options | { occurrance?: number | undefined; negate?: boolean | undefined; otherwise?: OptLazy <O>; } |
first
undocumented
first
flatMap
undocumented
flatMap
flatZip
undocumented
flatZip
fold
undocumented
fold
foldStream
undocumented
foldStream
forEach
undocumented
forEach
Definition
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 ; } |
forEachPure
undocumented
forEachPure
groupBy
undocumented
groupBy
Definition
groupBy<K, R>(valueToKey: (value: T, index: number) => K, options?: {
collector?: Reducer<readonly [K, T], R>
|
undefined;
}): R;
Type parameters
Name | Description |
---|---|
K | |
R |
Parameters
Name | Type | Description |
---|---|---|
valueToKey | (value: T, index: number) => K | |
options | { collector?: Reducer<readonly [K, T], R> | undefined; } |
indexed
undocumented
indexed
indexOf
undocumented
indexOf
indexWhere
undocumented
indexWhere
indicesOf
undocumented
indicesOf
indicesWhere
undocumented
indicesWhere
intersperse
undocumented
intersperse
join
undocumented
join
Definition
join({ sep, start, end, valueToString, ifEmpty, }?: {
sep?: string
|
undefined;
start?: string
|
undefined;
end?: string
|
undefined;
valueToString?: StringConstructor
|
undefined;
ifEmpty?: undefined;
}): string;
Parameters
Name | Type | Description |
---|---|---|
{ sep, start, end, valueToString, ifEmpty, } | { sep?: string | undefined; start?: string | undefined; end?: string | undefined; valueToString?: StringConstructor | undefined; ifEmpty?: undefined; } |
last
undocumented
last
map
undocumented
map
mapPure
undocumented
mapPure
max
undocumented
max
maxBy
undocumented
maxBy
min
undocumented
min
minBy
undocumented
minBy
mkGroup
undocumented
mkGroup
partition
undocumented
partition
prepend
undocumented
prepend
reduce
undocumented
reduce
reduceStream
undocumented
reduceStream
repeat
undocumented
repeat
single
undocumented
single
some
undocumented
some
splitOn
undocumented
splitOn
Definition
splitOn<R>(sepElem: T, options?: {
eq?: Eq<T>
|
undefined;
negate?: boolean
|
undefined;
collector?: Reducer<T, R>
|
undefined;
}): Stream<R>;
Type parameters
Name | Description |
---|---|
R |
Parameters
Name | Type | Description |
---|---|---|
sepElem | T | |
options | { eq?: Eq<T> | undefined; negate?: boolean | undefined; collector?: Reducer<T, R> | undefined; } |
splitOnSlice
undocumented
splitOnSlice
splitWhere
undocumented
splitWhere
Definition
splitWhere<R>(pred: (value: T, index: number) => boolean, options?: {
negate?: boolean
|
undefined;
collector?: Reducer<T, R>
|
undefined;
}): Stream<R>;
Type parameters
Name | Description |
---|---|
R |
Parameters
Name | Type | Description |
---|---|---|
pred | (value: T, index: number) => boolean | |
options | { negate?: boolean | undefined; collector?: Reducer<T, R> | undefined; } |
take
undocumented
take
takeWhile
undocumented
takeWhile
transform
undocumented
transform
window
undocumented
window
withOnly
undocumented
withOnly