November 2017
Intermediate to advanced
670 pages
17h 35m
English
Suppose we start with a slice of ints, ints := []int{1,2,3}.
In imperative programming, we write all the scaffold code to implement exactly how to process this slice of ints. In pure FP, however, we tell our functor what we want the loop to do:

Here's the output:
imperative loop: [2 3 4]fp map: [2 3 4]
Let's see how this works.