- Preparing search index...
- The search index is not available
peter-piper
- take<T>(n: number): ((input: AnyIterable<T>) => AsyncIterable<Awaited<T>>)
-
Returns ((input: AnyIterable<T>) => AsyncIterable<Awaited<T>>)
-
- (input: AnyIterable<T>): AsyncIterable<Awaited<T>>
-
Returns AsyncIterable<Awaited<T>>
Lazily takes the first
n
elements from the input iterable. Returns an async iterable with the firstn
elements of the input iterable.Returns
A function that accepts an input iterable and returns an async iterable with the first
n
elements of the input iterable.Example