import { AsyncReducer } from "https://deno.land/x/rimbu@1.0.3/common/mod.ts";
const { contains } = AsyncReducer;
Returns an AsyncReducer
that outputs false as long as the given elem
has not been encountered in the input values, true otherwise.
Returns
AsyncReducer<T, boolean>