March 2019
Intermediate to advanced
208 pages
5h 11m
English
Back in the code, we had to rewrite the price function to accept and return option values.
Change it back to an ordinary function and rewrite the code for displayPrice (see the code) using Belt.Option.map to handle the option manipulation. File code/datatypes/src/OptionShirtSizes2.re contains a solution.
Read now
Unlock full access