compose: compose

Description Usage Arguments Value Examples

Description

Composes a number of functions. Evaluates functions from right to left.

Usage

1

Arguments

...

functions that should be composed

Value

The composition of the functions.

Examples

1
2
3
4
5
6
composition <- compose(
   map(function(x) x + 1),
   keep(function(x) x %% 3 == 0),
   keep(function(x) x < 500),
   take(5)
 )

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