import { type LazyShared } from "https://deno.land/x/better_iterators@v1.1.0/mod.ts";
Shared interface for Lazy and LazyAsync.
(Note: LazyAsync
implements some methods that are not shared.)
You shouldn't need to interact with these classes or this interface directly, though. You can convert to the appropriate one with lazy.
Operations on lazy iterators consume the underlying iterator. You should not use them again.
Methods
map<Out>(transform: Transform<T, Out>): LazyShared<Out>
Apply transform
to each element.
Works like Array#map.
partition(f: Filter<T>): Awaitable<Partitioned<T>>
Partition items into matches
and others
according to Filter f
.