Type alias TTransIteratorSyncOrAsync<TIn, TOut>
TTransIteratorSyncOrAsync<TIn, TOut>: ((iterator: Iterator<TIn> | AsyncIterator<TIn>) => IterableIterator<TOut> | AsyncIterableIterator<TOut>)
Type declaration
-
- (iterator: Iterator<TIn> | AsyncIterator<TIn>): IterableIterator<TOut> | AsyncIterableIterator<TOut>
-
Parameters
-
iterator: Iterator<TIn> | AsyncIterator<TIn>
Returns IterableIterator<TOut> | AsyncIterableIterator<TOut>
A transIterator is a function that takes a (Sync or Async) Iterator as input and outputs a (Pipeable, Sync or Async, Iterable) Iterator