Description Usage Arguments Value
View source: R/function_utils.r
Repeatedly apply a function f
to an argument arg
, additional arguments ...
are supplied unchanged in each call. E.g. iterate(3, foo, 42.14, "bar")
is equivalent to
foo(foo(foo(42.14, "bar"), "bar"), "bar")
.
1 |
n |
The number of times to apply |
f |
The function to apply. |
arg |
The argument to repeatedly apply |
... |
Additional argument to pass to |
The result of repeatedly applying f
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.