| Mutable Linear Recursive Structure (2008) | |||||||||
Abstract | |||||||||
| Immutable lists are certainly very useful, but sometimes we naturally think of things as changing state. For instance, when we add an item to a list in real life, we don't throw away the old list; we mutate it to hold the new item. In this section we define the structure and behavior of a mutable list using a combination of the state dsign pattern and the visitor design pattern. | |||||||||
Publication details | |||||||||
| |||||||||