Questions tagged [currying]

Currying is a programming technique / transformation wherein an argument that takes one or more arguments is transformed into a chain of functions each taking precisely one argument. Some languages (e.g. ML, Haskell) require it.

Filter by
Sorted by
Tagged with
152
votes
15answers
72k views

What is the advantage of currying?

I just learned about currying, and while I think I understand the concept, I'm not seeing any big advantage in using it. As a trivial example I use a function that adds two values (written in ML). ...
13
votes
3answers
1k views

Is it possible to have currying and variadic function at the same time?

I am thinking about making currying and variadic functions both available in a dynamically-typed functional programming language, but I wonder if it is possible or not. Here are some pseudocode: sum ...