Introduction
This section will explore the more advanced data structures in ReasonML.
We'll cover the following
Composite Data Structures
In the previous sections, we were introduced to the basic structures, types and conditional statements available to us in Reason. What if we could use them to create a more complex data type?
Well, that is exactly what this section is about.
Variants and Lists
The variant type is the most powerful and unique tool in Reason. It allows us to group different types together to create a new data type.
The list is a structure whose functionality is based on the principles of the variant. It will be the last data structure in this course.
So, without further ado, let’s get started with variants.
Get hands-on with 1400+ tech skills courses.