The example above is operationally equivalent to the following pseudocode: .
The comparison of this with pattern matching will point out some of the advantages of algebraic data types and pattern matching.