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

Questions
Question [1].
The type of rangeX([<8, 12>], {8, 15, 18, 19, 14}) is

Question [2].
rangeX([<9, 14>, <8, 19>, <9, 17>, <1, 15>, <5, 10>], {11, 3, 12, 16, 10}) == 



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.