search for: createfunc

Displaying 1 result from an estimated 1 matches for "createfunc".

2012 May 03
2
`mapply(function(x) function() x, c("a", "b"))$a()' returns `"b"'
As the title says, I want to apply a function (which itself returns a function) to a list (or vector), and get a list (or vector) of generated functions as the return value, but get unexpected result. Anyone with an idea about the reason of this phenomenon and a correct way to implement the requirements? Thanks very much :) -- Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134,