fp::apply
-- apply function to
argumentsfp::apply
(f,a)
returns
f(a)
.
fp::apply(f <, e...>)
f |
- | function |
e |
- | object used as argument |
The result of the function call f(e,...)
.
Same side effects as when calling f(e,...)
directly.
fp::apply
applies the function f
to the
arguments given by e
....Apply the function f
to x
and
y
:
>> fp::apply(f, x, y)
f(x, y)
Apply the functions of the first list to the arguments given by the second list:
>> zip([sin, cos], [x, y], fp::apply)
[sin(x), cos(y)]