TIL: Partial application and currying aren't the same

sschwarzer
Tue, 14 Jun 2022 11:30:49 +0000
General

Up to yesterday, I thought that currying was the same as partial function application. They're not, as I learned from some web research (e.g. 1, 2, 3). But the concepts are similar, probably that's where the misunderstanding comes from.

Curiously, Racket's curry function (from racket/function) is a hybrid that supports both partial application and currying. Check the curry documentation to see how.

5 posts - 4 participants