Unary functions are evaluated in left to right or first to last order.

as.UnaryFn(items, env = parent.frame())

Arguments

items

list of UnaryFn derived instances.

env

environment to work in.

Value

UnaryFnList

See also

Examples

f <- as.UnaryFn(list(pkgfn("base::sin", "x"), pkgfn("base::cos", "x"))) cat(format(f))
#> UnaryFnList( #> base::sin(x=., ), #> base::cos(x=., ))
1:3 %.>% f
#> [1] 0.6663667 0.6143003 0.9900591