grapes-.-grapes: Compose two functions. Haskell-inspired syntactic sugar.

Description Usage Arguments Value Examples

Description

Function composition, acts like . in Haskell, only limited to two functions.

Usage

1
f %.% g

Arguments

f

[function] The outer function.

g

[function] The inner function.

Value

[function] Function composed of f and g.

Examples

1
2
3
f <- function(x) x+1
g <- function(x) x*2
lapply (1:3, soundcorrs:::'%.%' (f,g))

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.