8.3. File tom/Bag

class tom.Bag

A Bag is a Keyed Collection.

inherits

State supers: HashTable, Keyed

instance tom.Bag

methods


int
  at All object;

Return the number of times the element key is present in the bag.


Any
  at All object;

Return the object if present; nil otherwise.


Enumerator
  enumerator;

Undocumented.


id
  initWithEnumerator Enumerator e;

Undocumented.

class tom.MutableBag

inherits

State supers: Bag, MutableKeyed

instance tom.MutableBag

methods


void
    add All object
  count int num;

Add the object num times.


void
  add All object;

Add the object.