Currying

/ˈkɛriɪŋ/ noun

Definition

A technique in functional programming that transforms a function with multiple arguments into a sequence of functions, each taking a single argument. This allows partial application of functions by fixing some arguments and returning a new function.

Etymology

Named after mathematician Haskell Curry (though the technique was actually developed by Moses Schönfinkel). The term was introduced to programming in the context of lambda calculus and functional programming languages.

Kelly Says

Currying is like having a sandwich shop where instead of ordering 'turkey, swiss, mustard' all at once, you can say 'turkey' and get a function that makes turkey sandwiches, then add 'swiss' to get a turkey-swiss maker! This creates incredibly flexible and reusable code building blocks.

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.