![]() |
|
Navigation |
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 .
Examples
rascal>import Map; ok rascal>rangeR(("apple": 1, "pear": 2, "orange": 3), {2, 3}); map[str, int]: ("pear":2,"orange":3) ![]() |