From chuck at sharpsteen.net  Wed May  4 19:11:17 2011
From: chuck at sharpsteen.net (Sharpie)
Date: Wed, 4 May 2011 10:11:17 -0700 (PDT)
Subject: [Rd] Curry: proposed new functional programming, er, function.
In-Reply-To: <7098abec0711011200va3851o811f60bb100616ce@mail.gmail.com>
References: <7098abec0711011200va3851o811f60bb100616ce@mail.gmail.com>
Message-ID: <1304529077324-3496226.post@n4.nabble.com>


Byron Ellis-2 wrote:
> 
> Hi all (especially R-core) I suppose,
> 
> With the introduction of the new functional programming functions into
> base I thought I'd ask for a Curry() function. I use a simple one that
> looks this:
> 
> Curry = function(FUN,...) { .orig = list(...);function(...)
> do.call(FUN,c(.orig,list(...))) }
> 
> ...
> 
> 

I would like to see this as well---it is one of the functional programming
constructs I really miss in R after playing with languages like Haskell.

Currently, the only Curry implementation I know of is in the roxygen package
which is kind of a weird dependency to install just for this one function.

-Charlie

-----
Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering
Humboldt State University
--
View this message in context: http://r.789695.n4.nabble.com/Curry-proposed-new-functional-programming-er-function-tp917654p3496226.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Curry: proposed new functional programming, er, function.
Sharpie