abstract class StreamBase<T>
undocumented
Implements: Stream<T>
Type parameters
Name | Description |
---|---|
T | undocumented |
Methods
[Symbol.iterator]
undocumented
[Symbol.iterator]
append
undocumented
append
assumeNonEmpty
undocumented
assumeNonEmpty
collect
undocumented
collect
concat
undocumented
concat
Definition
concat(...others:
ArrayNonEmpty
<
StreamSource
<T>>):
Stream.NonEmpty
<T>;
Parameters
Name | Type | Description |
---|---|---|
others | ArrayNonEmpty < StreamSource <T>> |
Overrides
contains
undocumented
contains
containsSlice
undocumented
containsSlice
Definition
containsSlice(source:
StreamSource.NonEmpty
<T>, options?: {
eq?: Eq<T>;
amount?: number;
}): boolean;
Parameters
Name | Type | Description |
---|---|---|
source | StreamSource.NonEmpty <T> | |
options | { eq?: Eq<T>; amount?: number; } |
Overrides
count
undocumented
count
countElement
undocumented
countElement
distinctPrevious
undocumented
distinctPrevious
drop
undocumented
drop
dropWhile
undocumented
dropWhile
elementAt
undocumented
elementAt
equals
undocumented
equals
Definition
equals(other:
StreamSource
<T>, { eq, negate }?: {
eq?: Eq<T>;
negate?: boolean;
}): boolean;
Parameters
Name | Type | Description |
---|---|---|
other | StreamSource <T> | |
{ eq, negate } | { eq?: Eq<T>; negate?: boolean; } |
Overrides
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 |
Overrides
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>; } |
Overrides
first
undocumented
first
flatMap
undocumented
flatMap
Definition
flatMap<T2>(flatMapFun: (value: T, index: number, halt: () => void) =>
StreamSource
<T2>):
Stream
<T2>;
Type parameters
Name | Description |
---|---|
T2 |
Parameters
Name | Type | Description |
---|---|---|
flatMapFun | (value: T, index: number, halt: () => void) => StreamSource <T2> |
Overrides
flatZip
undocumented
flatZip
Definition
flatZip<T2>(flatMapFun: (value: T, index: number, halt: () => void) =>
StreamSource
<T2>):
Stream
<[T, T2]>;
Type parameters
Name | Description |
---|---|
T2 |
Parameters
Name | Type | Description |
---|---|---|
flatMapFun | (value: T, index: number, halt: () => void) => StreamSource <T2> |
Overrides
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 ; } |
Overrides
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; } |
Overrides
indexed
undocumented
indexed
indexOf
undocumented
indexOf
Definition
indexOf(searchValue: T, options?: {
occurrance?: number
|
undefined;
eq?: Eq<T>
|
undefined;
negate?: boolean
|
undefined;
}): number
|
undefined;
Parameters
Name | Type | Description |
---|---|---|
searchValue | T | |
options | { occurrance?: number | undefined; eq?: Eq<T> | undefined; negate?: boolean | undefined; } |
Overrides
indexWhere
undocumented
indexWhere
indicesOf
undocumented
indicesOf
indicesWhere
undocumented
indicesWhere
intersperse
undocumented
intersperse
Definition
intersperse(sep:
StreamSource
<T>):
Stream
<T>;
Parameters
Name | Type | Description |
---|---|---|
sep | StreamSource <T> |
Overrides
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; } |
Overrides
last
undocumented
last
map
undocumented
map
mapPure
undocumented
mapPure
max
undocumented
max
maxBy
undocumented
maxBy
min
undocumented
min
minBy
undocumented
minBy
mkGroup
undocumented
mkGroup
Definition
mkGroup({ sep, start, end, }?: {
sep?:
StreamSource
<T>;
start?:
StreamSource
<T>;
end?:
StreamSource
<T>;
}): any;
Parameters
Name | Type | Description |
---|---|---|
{ sep, start, end, } | { sep?: StreamSource <T>; start?: StreamSource <T>; end?: StreamSource <T>; } |
Overrides
partition
undocumented
partition
prepend
undocumented
prepend
reduce
undocumented
reduce
Definition
reduce<const S extends
Reducer.CombineShape
<T2>, T2 extends T = T>(shape: S &
Reducer.CombineShape
<T2>):
Reducer.CombineResult
<S>;
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
S | Reducer.CombineShape <T2> | ||
T2 | T | T |
Parameters
Name | Type | Description |
---|---|---|
shape | S & Reducer.CombineShape <T2> |
Overrides
reduceStream
undocumented
reduceStream
Definition
reduceStream<const S extends
Reducer.CombineShape
<T2>, T2 extends T = T>(shape: S &
Reducer.CombineShape
<T2>):
Stream
<
Reducer.CombineResult
<S>>;
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
S | Reducer.CombineShape <T2> | ||
T2 | T | T |
Parameters
Name | Type | Description |
---|---|---|
shape | S & Reducer.CombineShape <T2> |
Overrides
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; } |
Overrides
splitOnSlice
undocumented
splitOnSlice
Definition
splitOnSlice<R>(sepSeq:
StreamSource
<T>, options?: {
eq?: Eq<T>
|
undefined;
collector?: Reducer<T, R>
|
undefined;
}):
Stream
<R>;
Type parameters
Name | Description |
---|---|
R |
Parameters
Name | Type | Description |
---|---|---|
sepSeq | StreamSource <T> | |
options | { eq?: Eq<T> | undefined; collector?: Reducer<T, R> | undefined; } |
Overrides
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; } |
Overrides
stream
undocumented
stream
take
undocumented
take
takeWhile
undocumented
takeWhile
toArray
undocumented
toArray
toJSON
undocumented
toJSON
toString
undocumented
toString
transform
undocumented
transform
window
undocumented
window
Definition
window<R>(windowSize: number, options?: {
skipAmount?: number
|
undefined;
collector?: Reducer<T, R>
|
undefined;
}):
Stream
<R>;
Type parameters
Name | Description |
---|---|
R |
Parameters
Name | Type | Description |
---|---|---|
windowSize | number | |
options | { skipAmount?: number | undefined; collector?: Reducer<T, R> | undefined; } |
Overrides
withOnly
undocumented
withOnly