Skip to content

Partial application

Brian Marick edited this page Apr 27, 2017 · 1 revision

Problem 1

reversi applies its second argument to its first.

> reversi 5 negate
-5 : number

Problem 2

The mystery function applies its single argument to 3:

> mystery negate
-3 : number

Problem 3

> List.map mystery [negate, add5]
[-3,8] : List number