Pattern Matching
In this lesson, we will be introduced to the concept of pattern matching and how it relates to data structures in ReasonML.
We'll cover the following...
Previously, we learned how to create tuples containing various data objects called components. The components of a tuple, are indeed, immutable; but this does not mean that we cannot use them.
Pattern matching is a technique for accessing the contents of a tuple. All we ...