import { Reducer } from "https://deno.land/x/rimbu@0.13.5/core/mod.ts";
const { contains } = Reducer;
Returns a Reducer
that outputs false as long as the given elem
has not been encountered in the input values, true otherwise.
Examples
Example 1
Example 1
console.log(Stream.range({ amount: 10 }).reduce(Reducer.contains(5)))
// => true