reduce: Recursively recombine values of a list.

Description Usage Arguments

Description

Recursively recombine values of a list.

Usage

1
reduce(xs, f, init)

Arguments

xs

list. The list to reduce.

f

function. The reducing function to apply, taking two values and producing one value.

init

object. An optional initialization value to start reducing.


peterhurford/funtools documentation built on May 25, 2019, 1:50 a.m.