![]() |
| ||||||
Navigation |
Synopsis Intersection of two lists.
Syntax
Exp1 & Exp2
Types
Description Returns the intersection of the two list values of
Exp1 and Exp2 , i.e.,
the list value of EXp1 with all elements removed that do not occur in the list value of Exp2 .
Examples
rascal>[1, 2, 3, 4, 5] & [4, 5, 6];
list[int]: [4,5]
Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]()
Question [3].
![]() ![]()
Question [4].
![]() ![]() ![]() |