View source: R/8_function_operators.R
compose | R Documentation |
Standard function operator.
compose(f, g)
f |
A function. |
g |
A function. |
Mathematical operation compose. (fog)(x) = f(g(x))
library(functionalPlayground)
num_even <- compose(recursive_add, is_even)
num_even(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.