unenclose | R Documentation |
Unenclose a closure by substituting names for values found in the enclosing environment.
unenclose(f)
f |
a closure |
power <- function(exp) { function(x) x ^ exp } square <- power(2) cube <- power(3) square cube unenclose(square) unenclose(cube)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.