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"}