On Tue, Mar 6, 2012 at 10:07, Thaddee Tyl <[email protected]> wrote:
> An interesting property of this syntax is that anonymous functions can
>
be written this way:
>
> myList.forEach(λ (item) { doWith(item) })
>
> (it can also be `lambda (item) { ... }`)
>
Yes, any valid function identifier could be used, because it's not actually
a keyword.
_ (arg) { ... }
f (arg) { ... }
$ (arg) { ... }
ƒ (arg) { ... }
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss