Navigation
Synopsis The strict super list operator on lists.
Syntax Exp1 > Exp2
Types
Exp1 Exp2 Exp1 > Exp2
list[T1] list[T2] bool
Description Yields true if the value of Exp2 is a strict sublist of the value of Exp1, and false otherwise.
Examples
rascal>[1, 2, 3, 4] > [1, 2, 3];
bool: true
rascal>[1, 2, 3, 4] > [1, 2, 3, 4];
bool: false
rascal>[1, 2, 3, 4] > [1, 2, 3];
bool: true
rascal>[1, 2, 3, 4, 5] > [1, 3, 5]
bool: true

Questions
Question [1].
The type of [15, 2, 9, 8] > [-10, -20, 16, -7] is

Question [2].
[94,62,54,22,59,89,74] > [59,89,22,74] == 

Question [3].
["Blueberry"] > ["Blueberry"] == 



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.