import { Reducer } from "https://deno.land/x/rimbu@0.13.1/core/main/index.ts";
const { toJSSet } = Reducer;
Returns a Reducer
that collects received input values into a mutable JS Set, and returns
a copy of that map when output is requested.
Examples
Example 1
Example 1
console.log(Stream.of(1, 2, 3).reduce(Reducer.toJSSet()))
// Set {1, 2, 3}