Top "Currying" questions

Currying is the process of transforming a function of multiple arguments into a function of one argument that returns another function, which takes one fewer argument than the original one.

Functional programming in C++. Implementing f(a)(b)(c)

I have been getting into the basics of functional programming with C++. I am trying to make a function f(…

c++ c++11 functional-programming currying std-function
Is there a way to do currying in C?

Say I have a pointer to a function _stack_push(stack* stk, void* el). I want to be able to …

c functional-programming currying
Feed elements of a tuple to a function as arguments in Haskell?

In my Haskell program, I want to use printf to format a list of tuples. I can map printf over …

haskell functional-programming printf currying
What's the difference between multiple parameters lists and multiple parameters per list in Scala?

In Scala one can write (curried?) functions like this def curriedFunc(arg1: Int) (arg2: String) = { ... } What is the difference between …

scala currying partial-application
Is it possible to curry method calls in PHP?

I have a SoapClient instance generated for a WSDL file. All except one of the method invocations require the username …

php soap currying
How does currying work?

I'm very new to Haskell and FP in general. I've read many of the writings that describe what currying is, …

haskell currying
In Python, partial function application (currying) versus explicit function definition

In Python, is it considered better style to: explicitly define useful functions in terms of more general, possibly internal use, …

python functional-programming currying partial-application
Currying decorator in python

I am trying to write a currying decorator in python, and I think I've got the general idea down, but …

python decorator currying
Usefulness (as in practical applications) of Currying v.s. Partial Application in Scala

I'm trying to understand the advantages of currying over partial applications in Scala. Please consider the following code: def sum(…

scala partial currying
FoldLeft using FoldRight in scala

While going through Functional Programming in Scala, I came across this question: Can you right foldLeft in terms of foldRight? …

scala functional-programming currying fold higher-order-functions