Navigation
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.
Examples
rascal>import Map;
ok
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 ask.rascal-mpl.org.