January 2018
Beginner to intermediate
312 pages
7h 22m
English
Before we can understand types, we need to understand the most basic concept in functional programming—a function.
If you remember your high-school mathematics, a function is a kind of black box with an input and an output. You can imagine it as a bit of railroad track, with a Tunnel of Transformation sitting on it. Something goes in, is transformed somehow, and comes out the other side.

For example, let’s say that this particular function turns apples into bananas. We describe a function by writing down the input and output, separated by an arrow, as shown in the figure.
The apple -> banana description ...
Read now
Unlock full access