import { Enumerable } from "https://deno.land/x/proc@0.20.21/mod3.ts";
Enumerable wrapper for AsyncIterable
.
Use the factory function enumerate to create new instances to get better performance.
Constructors
Construct a new enumerable wrapper.
Properties
Take the head of the enumeration.
This operation is equivalent to take(1)
and consumes the enumeration.
Methods
Map the sequence from one type to another, concurrently.
Results are returned in order.
Map the sequence from one type to another, concurrently.
Items are iterated out of order. This allows maximum concurrency at all times, but the output order cannot be assumed to be the same as the input order.
Filter the sequence to contain just the items that pass a test.
Filter the sequence to exclude the items that pass a test. This returns the inverse of filter.
Equivalent to calling map followed by flatten.
Perform an operation for each item in the sequence.
Reduce a sequence to a single value.
Run a process.
Run a process.
Transform the iterable from one type to another with an opportunity to catch and handle errors.
Write all data to the writer.
Note that this call returns immediately, although it continues to run until the source iterable data is exhausted.
Implement AsyncIterable<T>
.