Skip to content

map¶

Holds the "map" datatype

Associated DataTypes¶

map¶

A map is a collection of keys, each of which is associated with a value. Maps are also called dictionaries or associative arrays. The keys in a map must be unique. The values may be any arbitrary string.

Members

int Count¶

Number of items added to the map.

bool Clear¶

Removes all items from the map. True is always returned.

bool Contains[ѕtring]¶

True is returned if the item is in the map.

bool Add[string,string]¶

True is returned if the item was added to the map. If the first string, called the 'key' is already in the map, the second string, called the 'value' will be replaced.

bool Remove[ѕtring]¶

True is returned if the 'key' matching string was removed from the map.

mapiterator First¶

A mapiterator is returned on the map where the current element under the iterator is the first element in the map if the map has elements or an empty iterator if the map is empty.

mapiterator Find[ѕtring]¶

A mapiterator is returned on the map where the current element under the iterator is the item if the item is in the map and an empty iterator if it is not.

This TLO is added by MQ2Collections.