Skip to main content

Set notin

rascal-0.34.0

Synopsis

Negated membership test on set values.

Syntax

Exp₁ notin Exp₂

Types

Exp₁Exp₂Exp₁ notin Exp₂
T₁ <: T₂set[T₂]bool

Description

Yields true if the value of Exp₁ does not occur as element in the value of Exp₂ and false otherwise. The type of Exp₁ should be compatible with the element type of Exp₂.

Examples

rascal>4 notin {1, 2, 3};
bool: true
rascal>4 notin {1, 2, 3, 4};
bool: false