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