On Jul 10, 2011, at 10:32 AM, Allen Wirfs-Brock wrote:
>
> Yes, if you actually need to pass Array.of as a function argument. Of course
> if we have block lambdas you could just say:
>
> hof({|a|[a]})
> instead of
> hof(Array.of)
actually the above aren't equivalent. The block lambda form would have to be:
hof({|...a|[...a]})
so it would loose the length way by 6 characters.
Allen
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss