Navigation
Synopsis A list relation restricted to certain element values in tuples.
Function
  1. lrel[&T,&T] carrierR (lrel[&T,&T] R, set[&T] S)
  2. lrel[&T,&T,&T] carrierR (lrel[&T,&T,&T] R, set[&T] S)
  3. lrel[&T,&T,&T,&T] carrierR (lrel[&T,&T,&T,&T] R, set[&T] S)
  4. lrel[&T,&T,&T,&T,&T] carrierR (lrel[&T,&T,&T,&T,&T] R, set[&T] S)
Usage import ListRelation;
Description Returns list relation R restricted to tuples with elements in set S.
Examples
rascal>import ListRelation;
ok
rascal>carrierR([<1,10>, <2,20>, <3,30>], {10, 1, 20});
lrel[int,int]: [<1,10>]

Questions
Question [1].
The type of carrierR([<0, 14>, <6, 18>, <2, 15>, <7, 18>], {4, 16}) is

Question [2].
carrierR([<4, 18>, <3, 11>, <1, 13>, <9, 14>, <6, 11>], {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.