Now that we got pattern calculus, can we do something like this?

#import <flx.flxh>

fun foo: int -> int -> int =
| 5->6 => 6
| 7->8 => 8
| _    => 9
;

print$ foo 5 6; endl;

-e

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to