import { Reducer } from "https://deno.land/x/rimbu@1.2.1/stream/main/reducer.ts";
const { every } = Reducer;
Returns a Reducer
that ouputs true as long as all input values satisfy the given pred
, false otherwise.
Parameters
pred: (value: T, index: number) => boolean
- a function taking an input value and its index, and returning true if the value satisfies the predicate