[plt-scheme] Currying functions?

From: Doug Orleans (dougorleans at gmail.com)
Date: Sat Feb 4 16:28:00 EST 2006

Gregory Woodhouse writes:
 > Maybe it's possible to create a curried version of a  
 > function taking a variable number of arguments, but I'm not sure how  
 > it would be done.

I don't think it makes sense to "fully" curry a varargs procedure.
Which of these should return numbers, and which should return procedures?

(curry +)
((curry +) 1)
(((curry +) 1) 2)
((((curry +) 1) 2) 3)

--dougorleans at gmail.com


Posted on the users mailing list.