Navigation
Synopsis The range (i.e., all but the first element of each tuple) of a list relation.
Function
  1. list[&T1] range (lrel[&T0,&T1] R)
  2. lrel[&T1,&T2] range (lrel[&T0,&T1, &T2] R)
  3. lrel[&T1,&T2,&T3] range (lrel[&T0,&T1,&T2,&T3] R)
  4. lrel[&T1,&T2,&T3,&T4] range (lrel[&T0,&T1,&T2,&T3,&T4] R)
Usage import ListRelation;
Examples
rascal>import ListRelation;
ok
rascal>range([<1,10>, <2,20>]);
list[int]: [10,20]
rascal>range([<"mon", 1>, <"tue", 2>]);
list[int]: [1,2]

Questions
Question [1].
The type of range([<"P", 17>, <"Curry", -5>, <"R", -18>]) is

Question [2].
range([<"Forgetful Jones", -17>, <"Prince Charming", 16>, <"Apple", -8>]) == 



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.