![]() |
| ||||||
Navigation |
Synopsis Membership test on the keys of a map.
Syntax
Exp1 in Exp2
Types
Description Yields
true if the value of Exp1 occurs as key in the map value of Exp2 and false otherwise.
The type of Exp1 should be compatible with the key type TK of Exp2 .
Examples
rascal>"pear" in ("apple": 1, "pear": 2); bool: true rascal>"pineapple" in ("apple": 1, "pear": 2); bool: false ![]() |