![]() |
| ||||||
Navigation |
Synopsis Cartesian product of two relation values.
Syntax
Exp1 * Exp2
Types
Description Returns a binary relation that is the Cartesian product
![]()
Examples
rascal>{1, 2, 3} * {9}; rel[int,int]: { <2,9>, <3,9>, <1,9> } rascal>{1, 2, 3} * {10, 11}; rel[int,int]: { <1,11>, <2,11>, <3,11>, <3,10>, <2,10>, <1,10> } Questions
Question [1].
![]() ![]()
Question [2].
![]() ![]() ![]() |