Navigation
Synopsis Relation restricted to certain range values.
Function rel[&T0,&T1] rangeR (rel[&T0,&T1] R, set[&T2] S)
Usage import Relation;
Description Restriction of binary relation R to tuples with second element in set S.
Examples
rascal>import Relation;
ok
rascal>rangeR({<1,10>, <2,20>, <3,30>}, {30, 10});
rel[int,int]: {
  <3,30>,
  <1,10>
}

Questions
Question [1].
The type of rangeR({<1, 18>}, {18, 6, 11}) is

Question [2].
rangeR({<4, 14>, <7, 18>, <9, 10>, <5, 14>, <2, 13>}, {1}) == 



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.