Synopsis Membership test on list elements.
Syntax Exp1 in Exp2
Exp1 Exp2 Exp1 in Exp2
T1 <: T2 list[T2] bool
Description Yields true if the value of Exp1 occurs as element in the value of Exp2 and false otherwise. The type of Exp1 should be compatible with the element type of Exp2.
rascal>2 in [1, 2, 3];
bool: true
rascal>4 in [1, 2, 3];
bool: false

Question [1].
The type of false in [false, false] is

Question [2].
65 in [97,65,31,88,53,67] == 

Question [3].
3 in [5] == 

Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit