Skip to content
Prev 18343 / 63424 Next

unvectorized option for outer()

On 11/1/2005 10:16 AM, Thomas Lumley wrote:
I do agree that if I'd specified something like

mapply(function(x) x^2, x=numeric(0))

then the answer (which is again list()) would be correct.  But
what is the length of the longest item in an empty set?  I'd say it's 
undefined.

Duncan Murdoch