Synopsis Less than operator on tuple values.
Syntax Exp1 < Exp2
Exp1 Exp2 Exp1 < Exp2
tuple[ T11, T12, ... ] tuple[ T21, T22, ... ] bool
Description Yields true if
  • both tuples are not equal, and
  • the left-most element in the tuple value of Exp1 that differs from the corresponding element in the tuple value of Exp2 is less than that element in Exp2.
Otherwise the result if false.
rascal><1, "abc", true> < <1, "def", true>;
bool: true
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