Questions tagged [currying]

For questions about currying, a style of writing functions such that each function takes one argument and returns another function taking the next.

Filter by
Sorted by
Tagged with
6 votes
3 answers

How to implement + in a language where functions accept only one argument? [closed]

While reading about currying, I found the argument that it is beneficial in languages, which have only functions accepting only one argument. I am wondering how to implement a 2-ary function like the ...
ceving's user avatar
  • 356
13 votes
3 answers

What are the pros and cons of automatically curried functions?

In several functional languages like Haskell and OCaml, functions are automatically curried. This means that a function taking two arguments (lambda x, y: x + y) is ...
naffetS's user avatar
  • 1,027