From lists to trains to functors
The first useful bit of functional programming is the map method on List. It gives us a new List, which contains the results of the mapped function applied to each item in the list. We might think of it like this, mapping f over a List of a single item of type A: That’s the … Read moreFrom lists to trains to functors