import { LazyAsync } from "https://deno.land/x/better_iterators@v1.3.0/mod.ts";
Constructors
Methods
Given uniqueKeyFn
, use it to extract a key from each item, and create a
1:1 map from that to each item.
Takes an additional valueFn
to extract a value from T
. The returned
map maps from Key to Value. (instead of Key to T)
Iterate by chunks of a given size formed from the underlying Iterator.
Each chunk will be exactly size
until the last chunk, which may be
from 1-size items long.
Adds a valueFn
to extract that value (instead of T) into a group.
Like map, but performs up to max
operations in parallel.
Note: This function will ensure that the order of outputs is the same as the order of the inputs they were mapped from. This can introduce head-of-line blocking, which can slow performance. If you don't need this, use mapParUnordered instead.
A version of mapPar that does not enforce ordering, so doesn't suffer from head-of-line blocking.
Partition items into matches
and others
according to Filter f
.
Get a "peekable" iterator, which lets you peek() at the next item without removing it from the iterator.