November 2017
Intermediate to advanced
670 pages
17h 35m
English
Immutable data structures:
Since immutable data structures are never changed, that means that failures never occur during a data modification operation. When an immutable data structure is initialized it will either fail or succeed, returning a valid data structure that never changes.
In order to make changes to an immutable data structure, we must create a new tree. Suppose we want to update the value of g in the existing tree data structure ...