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

Questions
Question [1].
The type of rangeR([<2, 11>, <8, 19>], {11}) is

Question [2].
rangeR([<5, 17>, <0, 18>, <8, 19>, <6, 11>, <6, 13>], {9, 16, 0, 7}) == 



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.