![]() |
|
Navigation |
Synopsis Map restricted to certain keys.
Function
map[&K, &V] domainR(map[&K, &V] M, set[&K] S)
Usage
import Map;
Description Return the map
M restricted to pairs with key in S .
Examples
rascal>import Map; ok rascal>domainR(("apple": 1, "pear": 2, "orange": 3), {"apple", "pear"}); map[str, int]: ("pear":2,"apple":1) ![]() |