Get the latest tech news

A case against currying


d functions are probably one of the first new things you come across if you go from an imperative language to a functional language. In purely functional languages, the convention is to define an n-parameter function inductively by staggering the parameters: applying the function to argument #1 returns a function that takes parameters 2..n, which in turn can be applied to argument #2 to return a function that takes parameters 3..n, etc.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Case

Case

Photo of Currying

Currying

Related news:

News photo

Spigen's New AirPods Pro 3 Case Is Modeled After the Original Macintosh Mouse

News photo

Type systems are leaky abstractions: the case of Map.take!/2

News photo

MacBook Neo keyboard is replaceable independent of top case