Synopsis The range (set of values that correspond to its keys) of a map.
Function set[&V] range(map[&K, &V] M)
Usage import Map;
Description Returns the range (set of values) of map M.
rascal>import Map;
rascal>range(("apple": 1, "pear": 2));
set[int]: {1,2}
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