3 ms·
Racket, for one, has a curry function: https://docs.racket-lang.org/reference/procedures.html#%28def._%28%28lib._racket%2Ffunction..rkt%29._curry%29%29 https://
by peatmoss 10y ago
Racket, for one, has a curry function: https://docs.racket-lang.org/reference/procedures.html#%28def._%28%28lib._racket%2Ffunction..rkt%29._curry%29%29 https://docs.racket-lang.org/reference/procedures.html#%28de...
- codemac 10y agoMy 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.