![]() |
| ||||||
Navigation |
Synopsis Intersection of two maps.
Syntax
Exp1 & Exp2
Types
Description Returns the intersection of the two map values of
Exp1 and Exp2 , i.e., a map that contains the key/value pairs that
occur in both maps.
Examples
rascal>("apple": 1, "pear": 2) & ("banana": 3, "apple": 1); map[str, int]: ("apple":1) rascal>("apple": 1, "pear": 2) & ("banana": 3, "apple": 4); map[str, int]: () ![]() |