January 2018
Beginner to intermediate
312 pages
7h 22m
English
In this chapter, we looked at the concept of type and how it relates to functional programming, and we also saw how the composition of types could be used to create larger types from smaller types using F#’s algebraic type system. We were introduced to record types, built by AND-ing data together, and choice types (also known as discriminated unions), built by OR-ing data together, as well as other common types based on these, such as Option and Result.
Now that we understand how types work, we can revisit our requirements and document them using what we’ve learned.
Read now
Unlock full access