Eduardo Cavazos wrote:

What would be *really* cool is if it curried according to the sorted order of the letters.

Another variant is, if parameters have the same name, they are specialized simultaneously. I.e.:

(curry list c c b b a a)

=>

(lambda (a1 a2)
 (lambda (b1 b2)
  (lambda (c1 c2)
   (list c1 c2 b1 b2 a1 a2))))

To play well with non-placeholder parameters, perhaps the placeholders could be named <1>, <2>, <3>, etc.

Ed

Reply via email to