Composition with multiple arguments.

Description

Thanks, Alexander Davis!

Usage

1

Arguments

...

the functions to be composed

Value

A composed function

Examples

1
2
3
f <- function(x, y) x+y
g <- function(x) x*2
stopifnot(multi.argument.Compose(f, g)(1,1) == 4)