Simple take on monadic types : the List
The goal of our program is to harvest trees (🌳) to get apples (🍎) and bake them into pies (🥧)! In order to store them, we’ll use the abstract (but familiar) concept of
List, everything is much easier when stored in a list.
Bake the piece of pie
Let’s consider this function: