Summary
In this chapter, we were able to go through the main collections in the FSharp.Core
library, such as lazy sequences, arrays, lists, maps, and sets; learned the difference between them in terms of mutability and memory and computation efficiency. We also saw how to use the functions in their respective modules to easily manipulate them.
After that, we worked with some advanced data structures that we coded ourselves, such as binary trees or balanced red-black trees. In the next chapter, we will go through the imperative constructs present in F#, and we will compare them with those in C#.