[R] What is a 'closure'?

Hadley Wickham hadley at rice.edu
Fri Jan 20 00:35:35 CET 2012


On Thu, Jan 19, 2012 at 1:45 PM, Ajay Askoolum <aa2e72e at yahoo.co.uk> wrote:
> The "R Language Definition" at http://cran.r-project.org/doc/manuals/R-lang.html states in the following section
>
> 4.3.2 Argument matching
> This subsection applies to closures but not to primitive functions.
>
> What are 'closures'?

You might find the discussion here helpful:
https://github.com/hadley/devtools/wiki/First-class-functions

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list