A mutable dictionary mapping Sequence keys to arbitrary values.
Converts a Map to a string that represents contents in JSON-compilant form
Converts a Map to a list of lists. Each element in the returned list will be a list of two elements: the key, and the value.
Create a new Object whose slotDescriptionMap will be equal to self
Returns the value for the key keyString. Returns nil if the key is absent.
If a value is present at the specified key, the value is returned. Otherwise, inserts/sets aValue and returns aValue.
Inserts/sets aValue with the key keyString. Returns self.
Returns a random value for which message evals to non-nil.
Removes all keys from the receiver. Returns self.
For each key value pair, sets the locals key to the key and value to the value and executes message. Example:
aMap foreach(k, v, writeln(k, " = ", v)) aMap foreach(v, write(v))
Example use with a block:
myBlock = block(k, v, write(k, " = ", v, "\n")) aMap foreach(k, v, myBlock(k, v))
Returns true if the key is present or false otherwise.
Returns true if the value is one of the Map's values or false otherwise.
Returns true if this map doesn't contain any pairs.
Returns true if this map contains at least one pair.
Writes the receiver's code into the stream.
Returns a List of the receivers keys.
Create a List of results of message applied to self's items in a random order.
Returns a new map created by merging the pairs from anotherMap into this map
Merges the pairs from anotherMap into this map
Removes the specified keyString if present. Returns self.
Creates a new Map using values as keys and keys as values
Creates a new Map with keys,values of self for which message evaluated to non-nil.
Returns the number of key/value pairs in the receiver.
Returns a List of the receivers values.
Returns a new map containing the given keys and values