1.15 RecList

RecList is a subpattern of the list pattern, and makes it possible to represent recursive lists. TheCellType is further bound to include the sublist reference, and if the list position represents a sublist, sublist will contain a reference to the sublist. TheCellType further defines the when attribute, which may be used to specify actions to be executed in case the list position contains an element reference, respectively a sublist. Finally, recList defines the following additional operations:

insertSublistBefore, insertSublistAfter: Takes a list and a list position, and inserts the list as a sublist before (respectively after) the list position

RecList defines the exception illegalSublist, which is invoked if the elements of an sublist are not instances of a subpattern of the element type of this recList.


Container Libraries - Reference Manual
© 1992-2004 Mjølner Informatics
[Modified: Thursday October 19th 2000 at 12:51]