(untitled)

This is probably the most important example you will see if you want to understand what is FP all about. Not all functions can really be represented as data structures (many of them have infinite inputs), but all of them can be reasoned about as such. One way to grasp the power of this concept is to imagine how the function-data isomorphism scales. Imagine a simple function like the one you see…