import { AsyncReducer } from "https://deno.land/x/rimbu@1.2.1/stream/async/async-reducer.ts";
const { containsSlice } = AsyncReducer;
Returns an AsyncReducer
that returns true if the input values contain the given slice
sequence amount
times. Otherwise,
returns false.
Parameters
slice: AsyncStreamSource<T>
- a async sequence of elements to match against
Returns
AsyncReducer<T, boolean>