Skip to main content
Module

x/fae/reduce.ts>reduce

A functional module for Deno inspired from Ramda.
Latest
variable reduce
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

type

Reduce