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