MapSize()
语法
Result = MapSize(Map())概要
Returns the number of elements in the specified map. It does not change the current element.
参数
Map() The map to use.
返回值
Returns the number of elements in the map.
Remarks
This function is very fast (it doesn't iterates all the map but uses a cached result) and can be safely used to determine if a map is empty or not.
示例
NewMap Country.s() Country("FR") = "France" Country("US") = "United States" ; Will print '2' Debug "Size of the map: " + Str(MapSize(Country()))
参阅
MapSize()
已支持操作系统
所有