|
|
|
|
|
by bcoates
4885 days ago
|
|
I think people use currying with arithmetic examples because currying gives you general partial application if your function is commutative, and almost the only commutative functions in real programs are arithmetic and some comparison functions. It's kind of weird because the more arguments your function has, the more useful partial application is, and the less likely the curried form is going to work without reordering. |
|