Navigation
Synopsis Less than or equal operator on tuple values.
Syntax Exp1 <= Exp2
Types
Exp1 Exp2 Exp1 <= Exp2
tuple[ T11, T12, ... ] tuple[ T21, T22, ... ] bool
Description Yields true if
  • both tuples are equal, or
  • 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.
Examples
rascal><1, "abc", true> <= <1, "abc", true>;
bool: true
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 ask.rascal-mpl.org.