list_fold: List fold (reduce)

View source: R/functions.R

list_foldR Documentation

List fold (reduce)

Description

Reduce for lists

Usage

list_fold(list, fun, z = NULL)

Arguments

list
fun

a binary function taking elements of the list as values

z

initial value, if empty the first element of the list will be used

Value

same as output of fun

Author(s)

float


floatofmath/bt88.03.704 documentation built on March 25, 2022, 12:28 p.m.