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

Questions
Question [1].
The type of range({<"X", -20>}) is

Question [2].
range({<"O", -3>, <"Grover", -8>, <"J", 13>, <"Lychee", -18>}) == 



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.