Syntax...
Vladimir Kirichenko
vladimir.kirichenko at gmail.com
Fri Nov 20 18:14:44 PST 2009
Vladimir Kirichenko wrote:
> Or lets go more wild:
>
> named function/closure/lambda:
>
> fun int plusOne(int x) => x + 1;
>
> anonymous:
>
> x.aMethod(fun int(int x) => x + 1);
>
> type decl:
>
> void aMethod( fun int f(int x) ) {....f(1)... }
Assignment:
fun int plusOne(int x) => x + 1;
fun int inc(int x) = plusOne;
--
Best Regards,
Vladimir Kirichenko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091121/5e95a38b/attachment.bin
More information about the closures-dev
mailing list