Count
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Function Syntax
Returns the number of keys in the specified aggregate.
Code Samples
This example function uses count to create a new key in a map (defined outside the function to hopefully eliminate some confusion).
item [int] map;
boolean newkey(item i) {
map[count(map)] = i;
}
See Also
Special
This function returns 0 for an empty map (i.e. with 0 keys).