reduce: Reduce

Description Usage Arguments Value Functions See Also

Description

Recursively fold a function across a list, yielding a scalar.

Usage

1
2
3
reduce(ls, fn, init = 0, ...)

reduce_right(ls, fn, init = 0, ...)

Arguments

ls

A function, with class fl, that operates as a functional list object

fn

A binary function, i.e. a function that takes two arguments

init

The initial value for the recursive

...

Additional arguments to fn

Value

A scalar

Functions

See Also

Reduce


michaelquinn32/lambdaList documentation built on May 22, 2019, 9:52 p.m.