Skip to content

Curry: proposed new functional programming, er, function.

2 messages · Charlie Sharpsteen, Gabor Grothendieck

#
Byron Ellis-2 wrote:
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.
#
On Wed, May 4, 2011 at 1:11 PM, Sharpie <chuck at sharpsteen.net> wrote:
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:
[1] "x"