Synopsis Determine the domain (set of keys) of a map.
Function set[&K] domain(map[&K, &V] M)
Usage import Map;
Description Returns the domain (set of keys) of map M.
rascal>import Map;
rascal>domain(("apple": 1, "pear": 2));
set[str]: {"pear","apple"}
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