3 ms·
My cheapo one: (define (curry f . args) (lambda (. cargs) (apply f (append args cargs))))
by codemac 10y ago
My cheapo one:
(define (curry f . args)
(lambda (. cargs)
(apply f (append args cargs))))
- peatmoss 10y agoLooking through the other comments, I now see they were looking for automated currying. I was confused, as currying is trivial—as per your example—and also built in as a named function in Racket.