Synopsis Map with certain keys excluded.
Function map[&K, &V] domainX(map[&K, &V] M, set[&K] S)
Usage import Map;
Description Return the map M restricted to pairs with key not in S.
rascal>import Map;
rascal>domainX(("apple": 1, "pear": 2, "orange": 3), {"apple", "pear"});
map[str, int]: ("orange":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