as_sum: as_sum

Description Usage Arguments Value

Description

A normal reduction step function that sums over all items. It also supports arity 0 and 1.

Usage

1
as_sum(acc, input)

Arguments

acc

the accumulater, can be empty

input

the input, can be empty

Value

A step function that yields a sum


dirkschumacher/transduceR documentation built on May 15, 2019, 8:50 a.m.