March 2019
Intermediate to advanced
208 pages
5h 11m
English
While the tuple we built in Chapter 5, Using Collections was useful and appropriate for the task, tuples aren’t the answer when we have to work with more complex data structures. Instead, ReasonML has records, which let you create immutable data structures with field names. This makes your code more organized and readable.
Modules also help in keeping code organized. You’ll see that you can create modules to hold data types, records, and functions that operate on them. Modules are also first-class citizens in the ReasonML world. You’ll see this in action as we create custom modules that serve as arguments to other modules.
Read now
Unlock full access