The complete range of data types that can be constructed in this way is called algebraic data types or ADT in short.Using algebraic data types has several advantages:Pattern matching can be used to analyze any concrete instance to select different behaviour based on input data. as in the ...