Snippets tagged currying

  • Currying

    Currying is about fixing arguments of functions from left to right. It's useful to configurate code and embed parameters that usually serve to define the context of a function execution (i.e. a database connection object). Symbolic functions can be used to reorder arguments if needed.

    18 people like this

    Posted: 6 years ago by Antonio Cisternino

  • Curry / Uncurry

    Helpers to convert functions that take a 2-tuple to curried functions and vice versa. Very helpfull for the "Zip"-functor together with operators - see example

    42 people like this

    Posted: 6 years ago by Carsten K├Ânig