Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Currying

Like many functional languages Mond supports currying.

For example we can define a function that adds two numbers

(let add_two {x y} (+ x y))

We can reuse that function via partial application to create a new function that adds 10 to a number

(let add_ten {x} (add_two 10 x))