Path: news.cs.au.dk!news.net.uni-c.dk!sunsite.auc.dk!newsfeed1.uni2.dk!newsfeed.tli.de!newsfeed.icl.net!oleane!jussieu.fr!unilim.fr!news.cict.fr!news.u-bordeaux.fr!univ-rennes1.fr!irisa.fr!not-for-mail From: Yoann Padioleau Newsgroups: comp.lang.beta Subject: Curry Date: 24 Sep 1999 16:55:06 +0200 Organization: IRISA, Campus de Beaulieu, 35042 Rennes Cedex, FRANCE Lines: 40 Message-ID: NNTP-Posting-Host: hcand.irisa.fr X-Trace: news.irisa.fr 938184908 30395 131.254.50.32 (24 Sep 1999 14:55:08 GMT) X-Complaints-To: usenet@irisa.fr NNTP-Posting-Date: 24 Sep 1999 14:55:08 GMT X-Newsreader: Gnus v5.7/Emacs 20.4 Xref: news.cs.au.dk comp.lang.beta:12088 How to write the curry function in beta ? In haskell we write things like that: curry f x y = f(x,y) add(x,y) = x+y addc = curry add inc = addc 1 Is this possible in haskell ?? I write those things in beta, but my function curry is not generic. Moreover we can't make easyly anonymous function in BETA, why ?? I mean that i must write : curry : (# anonsub: (# .... #) ... exit anonsub## #) Why can't we write exit (# .... #)## ?? -- pad