An Index is an collection of key/value pairs. Keys are typically symbols (but do not have to be).

Class Methods (see Type)

New
With no parameter, it creates an empty Index. With a single Integer, it creates a list with space for that many values.

Traits

[]
Get (or set) the element specified by the key index.
Each
Returns an closure that iterates over the Index, returning the next key and value out of the Index each time it is called.
empty?
Return true if Index has no elements
Remove
Remove the value from the Index referenced by the specified key.
size
Get the number of values held in the Index.