Collectionclass
The native collection type - this is the base class for lists, vectors, and other objects that represent collections of values.
intrinsic class
Collection
:
Object
Superclass Tree (in declaration order)
Collection
Object
Subclass Tree
Collection
List
LookupTable
WeakRefLookupTable
Vector
AnonFuncPtr
Global Objects
(none)
Summary of Properties
(none)
Summary of Methods
createIterator
createLiveIterator
Inherited from Object
:
getPropList
getPropParams
getSuperclassList
isClass
isTransient
ofKind
propDefined
propInherited
propType
valToSymbol
Properties
(none)
Methods
createIterator ( )
Create an iterator for the collection. This returns a new Iterator object that can be used to iterate over the values in the collection. The Iterator will use a snapshot of the collection that will never change, even if the collection is changed after the iterator is created.
createLiveIterator ( )
Create a “live iterator” for the collection. This returns a new Iterator object that refers directly to the original collection; if the original collection changes, the iterator will reflect the changes in its iteration. As a result, the iterator is not guaranteed to visit all of the elements in the collection if the collection changes during the course of the iteration. If consistent results are required, use createIterator() instead.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3