Length of map definition
General Information
Mantis ID/URL: http://oldforge.etsi.org/mantis/view.php?id=8228
Clauses: 6.2.15.5, 6.2.15.6, C.2.1
Affiliation: Gusztáv Adamis Ericsson
Description
The length of 'map' is defined in 3 different ways (though - at least according to the current version of the standard - they seem to mean the same
6.2.15.5. Since there is at most one value mapped to each key in a map value, the values in the set of keys will be unique. The length of the map value is equal to the length of the set of keys.
6.2.15.6. Since two different keys might be mapped to the same value in a map value, the values in the set of values might not be unique. The set of values will contain one value for each key value pair in the map. The length of the map value is equal to the length of the set of values.
C.2.1 (implicitly): For values of the map type, the (lengthof – AG) fuction returns the number of key value pairs in the map.