iter.accumulate: itertools.accumulate

Description Usage Arguments Value Examples

Description

itertools.accumulate

Usage

1
iter.accumulate(p, func = NULL)

Arguments

p
func

Value

list or vector

Examples

1
2
3
iter.accumulate(c(1, 2, 3, 4, 5))
iter.accumulate(c('A', 'B', 'C'))
iter.accumulate(c(1, 2, 3, 4, 5), func = function(x, y) { x * y })

sinhrks/pythonic documentation built on May 29, 2019, 10:10 p.m.