import { reduce } from "https://deno.land/x/fae@v1.1.1/reduce.ts";
Returns a single value by iterating though functor
calling the iterator function func
. func
takes two arguments.
First - acc
, Second - value
.
It may stop the reduction in between by means of ReducedTransformer
.
Acts as a transducer if a transformer is given in functor
.
Works on array-like/iterable/iterator