This is the generic collection class used by Kst to store lists
of objects. It behaves mostly like an array in JavaScript. At
this time indices are read-only. In addition, if a collection
is read-only, mutator methods will throw exceptions.
Iteration looks something like this:
for (i = 0; i < collection.length; ++i) {
// do something with collection[i]
}
Appends a new object to the end of the collection.
Prepends a new object to the start of the collection.
Removes an entry from the collection.
Removes an object from the collection.
Clears the collection, removing all entries.
The number of items in the collection. Items are ordered 0..(length - 1) so it is easy to iterate.
True if this is a read-only collection.