Publication View

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
Download http://cnx.org/content/m17265/1.1
Repository Connexions (United States)
Keywords visitor design pattern, state design pattern, state, mutation, linear recursive structure, dynamic reclassification, change
Language English