Implements a dictionary that stores objects indexed by keys. The keys are string types.
Answer the value associated with the given key. Throws a Ponder2ArgumentException error if not found.
Answer the value associated with the given key. If not found evaluate block (with no arguments) and return its result
Answer anObject. Store anObject in the table with aKey. If aKey already exists the previous value is overridden.
Takes a block and executes the block once for each entry in the hash. The arguments to the block are the name of the entry and the value of the entry. The result of each block is collated and returned in an array.
Takes a block and executes the block once for each entry in the hash. The arguments to the block are the name of the entry and the value of the entry. Answers with the receiver.
Answer true if the given key exists otherwise false
Answer the value associated with the given key and remove it from the table. Answer null if it is not found. TODO Should fail if not found