import * as mod from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async_iterable.ts";This file contains the AsyncIterable algebraic data type. AsyncIterable is the generic type for javascripts built in AsyncIterator type.
| ApplicableAsyncIterable | |
| bind | |
| bindTo | |
| FilterableAsyncIterable | |
| FlatmappableAsyncIterable | |
| MappableAsyncIterable | |
| tap | |
| WrappableAsyncIterable |
| apply | Apply a function wrapped in an AsyncIterable to a value wrapped in an AsyncIterable. |
| asyncIterable | Create an AsyncIterable from an AsyncIterator factory function. |
| clone | Create a clone of an AsyncIterable that can be consumed multiple times. |
| collect | Collect all values from an AsyncIterable into an array. |
| delay | Add a delay between each value in an AsyncIterable. |
| filter | Filter values in an AsyncIterable based on a predicate. |
| filterMap | Filter and map values in an AsyncIterable simultaneously. |
| flatmap | Chain AsyncIterable computations together. |
| fold | Fold over an AsyncIterable to produce a single value. |
| forEach | Execute side effects for each value in an AsyncIterable. |
| fromIterable | Convert a synchronous Iterable to an AsyncIterable. |
| fromPromise | Create an AsyncIterable from a Promise that resolves to a single value. |
| loop | Transform an AsyncIterable using a stateful stepper function. |
| map | Apply a function to each value in an AsyncIterable. |
| partition | Partition an AsyncIterable into two based on a predicate. |
| partitionMap | Partition and map an AsyncIterable based on an Either-returning function. |
| range | Create an AsyncIterable that yields numbers in a range. |
| repeat | Repeat an AsyncIterable a specified number of times. |
| scan | Scan over an AsyncIterable, yielding intermediate results. |
| take | Take the first n values from an AsyncIterable. |
| takeUntil | Take values from an AsyncIterable until a predicate is true. |
| takeWhile | Take values from an AsyncIterable while a predicate is true. |
| wrap | Wrap a single value in an AsyncIterable. |
| KindAsyncIterable | Specifies AsyncIterable as a Higher Kinded Type, with covariant parameter A corresponding to the 0th index of any substitutions. |