![]() |
| ||||||
Navigation |
Synopsis Intersection of two sets.
Syntax
Exp1 & Exp2
Types
Description Returns the intersection of the two set values of
Exp1 and Exp2 .
The intersection consists of the common elements of both sets.
Examples
rascal>{1, 2, 3, 4, 5} & {4, 5, 6};
set[int]: {4,5}
Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]()
Question [3].
![]() ![]()
Question [4].
![]() ![]() ![]() |