Synopsis Number of (key, value) pairs in a map.
Function int size(map[&K, &V] M)
Usage import Map;
Description Returns the number of pairs in map M.
rascal>import Map;
rascal>size(("apple": 1, "pear": 2, "orange": 3));
int: 3
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit