Comment

Comment by ncd

It's a function that takes a String and returns a new function which takes a String and returns a String. All functions in Haskell/Elm are arity 1.

So in order to construct functions that accept more than one argument, you actually return successive functions that apply successive arguments, known as currying.

parent ncd 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton