From ggrothendieck at gmail.com  Wed May  4 19:18:06 2011
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Wed, 4 May 2011 13:18:06 -0400
Subject: [Rd] Curry: proposed new functional programming, er, function.
In-Reply-To: <1304529077324-3496226.post@n4.nabble.com>
References: <7098abec0711011200va3851o811f60bb100616ce@mail.gmail.com>
	<1304529077324-3496226.post@n4.nabble.com>
Message-ID: <BANLkTimEpJ6hpSZ5sac3f2un52s77zfDoA@mail.gmail.com>

On Wed, May 4, 2011 at 1:11 PM, Sharpie <chuck at sharpsteen.net> wrote:
> 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.
>

Not entirely comparable but the proto package supports currying of
proto arguments. For example, p$ls returns an
"instantiatedProtoMethod" which is an S3 subclass of "function" that
is like the original method but with the first argument filled in:

> library(proto)
> p <- proto(x = 1)
> p$ls()
[1] "x"


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



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