String GreaterThan
rascal-0.40.17
Synopsis
Greater than operator on string values.
Syntax
Exp₁ > Exp₂
Types
Exp₁ | Exp₂ | Exp₁ > Exp₂ |
---|---|---|
str | str | bool |
Description
Yields true
if the string value of Exp₁ is strictly lexicographically greater
than the string value of Exp₂, and false
otherwise.
Examples
rascal>"abcdef" > "abc";
bool: true
rascal>"defghi" > "abcdef";
bool: true
rascal>"a" > "abc";
bool: false