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