![]() |
| ||||||
Navigation |
Synopsis The difference between two maps.
Syntax
Exp1 - Exp2
Types
Description The result is the difference of the two map values of
Exp1 and Exp2 ,
i.e. a map with all pairs in Exp1 that do have a key that does not occur in Exp2 .
Examples
rascal>("apple": 1, "pear": 2) - ("banana": 3, "apple": 4);
map[str, int]: ("pear":2)
![]() |