Re:Portacle – A Portable Common Lisp Development Environment
by peatmoss on Wednesday January 04, 2017 @10:21AM
(#13318949)
Racket, for one, has a curry function: https://docs.racket-lang.org/reference/procedures.html#%28de...
[ Parent
| on HN ]
Re:Portacle – A Portable Common Lisp Development Environment
by codemac on Wednesday January 04, 2017 @10:27AM
(#13319002)
My cheapo one:
(define (curry f . args) (lambda (. cargs) (apply f (append args cargs))))
Re:Portacle – A Portable Common Lisp Development Environment
by peatmoss on Wednesday January 04, 2017 @11:16AM
(#13319470)
Looking 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.