import { AsyncTransformer } from "https://deno.land/x/rimbu@1.2.0/mod.ts";
const { indicesWhere } = AsyncTransformer;
Returns an AsyncTransformer
that outputs the index of each received element that satisfies the given predicate.
Parameters
pred: (value: T) => MaybePromise<boolean>
- a potentially async predicate function taking an element
Returns
AsyncTransformer<T, number>