Monkey/Language/Maps

What are Maps?
Maps are lists that require a key-value relationship.

How to Create a Map?
Maps in monkey are created by extending the Map class. The extended map class *MUST* implement the Compare method.

Maps are able to use any type, including objects.

The Compare method in Monkey returns a "0" if the values are equal, a "1" or greater if the values are higher, or a "-1" or less if the values are lower. Some objects are difficult to compare, but the method must return a value for each field needed in the key.

Maps are used with Get and Set methods.

Monkey includes built-in maps which offer use for setting objects, by using integer, floats, and strings as keys: IntMap, FloatMap, StringMap