compose

0th

Percentile

Compose multiple functions

Compose multiple functions

Usage
compose(...)
Arguments
...

n functions to apply in order from right to left.

Aliases
  • compose
Examples
# NOT RUN {
not_null <- compose(`!`, is.null)
not_null(4)
not_null(NULL)

add1 <- function(x) x + 1
compose(add1, add1)(8)
# }
Documentation reproduced from package purrr, version 0.2.2.2, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.