Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fae/mod.ts>reduce

A functional module for Deno inspired from Ramda.
Latest
variable reduce
import { reduce } from "https://deno.land/x/fae@v1.1.1/mod.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