Algebraic Datatypes Using Nothing But Lambda Functions
In my previous blog, Implementing Linked List Using Nothing But Lambda Functions in Python, I introduced a basic type “Pair”, that is a building block for creating different kinds of data structures. In this blog I will explain to you the fundamental Algebraic Datatypes — Sum & Product types (and all of this using what we already defined in previous blog). In fact, Pair is the most basic Product type.