concept functional list in category .net

This is an excerpt from Manning's book Concurrency in .NET.
As a first step in this chapter, you’ll develop a functional list in both C# and F#. These are great exercises for understanding how immutable functional data structures work. Next, we’ll cover immutable tree data structures, and you’ll learn how to use recursion in FP to build a binary tree structure in parallel. Parallel recursion is used in an example to simultaneously download multiple images from the web.
Figure 3.3 Destructive update vs. a persistent update of a list. The list at right is updating in place to mutate the value 3 with the value 5, without preserving the original list. This process is also known as destructive. At left, the functional list doesn’t mutate its values, but creates a new list with the updated value.
![]()