BRL.Map: | Functions | Source |
CreateMap | Create a map |
ClearMap | Clear a map |
MapIsEmpty | Check if a map is empty |
MapInsert | Insert a key/value pair into a map |
MapValueForKey | Find a value given a key |
MapContains | Check if a map contains a key |
MapRemove | Remove a key/value pair from a map |
MapKeys | Get map keys |
MapValues | Get map values |
CopyMap | Copy a map |
Function CreateMap:TMap() | |
Returns | A new map object |
Description | Create a map |
Function ClearMap( map:TMap ) | |
Description | Clear a map |
Information | ClearMap removes all keys and values from map |
Function MapIsEmpty( map:TMap ) | |
Returns | True if map is empty, otherwise false |
Description | Check if a map is empty |
Function MapInsert( map:TMap,key:Object,value:Object ) | |
Description | Insert a key/value pair into a map |
Information | If map already contained key, it's value is overwritten with value. |
Function MapValueForKey:Object( map:TMap,key:Object ) | |
Returns | The value associated with key |
Description | Find a value given a key |
Information | If map does not contain key, a Null object is returned. |
Function MapContains( map:TMap,key:Object ) | |
Returns | True if map contains key |
Description | Check if a map contains a key |
Function MapRemove( map:TMap,key:Object ) | |
Description | Remove a key/value pair from a map |
Function MapKeys:TMapEnumerator( map:TMap ) | |
Returns | An iterator object |
Description | Get map keys |
Information | The object returned by MapKeys can be used with EachIn to iterate through the keys in map. |
Function MapValues:TMapEnumerator( map:TMap ) | |
Returns | An iterator object |
Description | Get map values |
Information | The object returned by MapValues can be used with EachIn to iterate through the values in map. |
Function CopyMap:TMap( map:TMap ) | |
Returns | A copy of map |
Description | Copy a map |