When pitching functional programming to an imperative friend, the “map” function is the canonical example of the obvious advantages of the functional approach. And once our backwoods imperative friend has begrudgingly accepted “map” as a neat party trick, we can really amaze them by abstracting “map” [...]
