Function call
|
Q1
|
Q2
|
Result
|
---|---|---|---|
Union(Q1, Q2)
|
{5,1,6,3,2,4}
|
{3,6,7,5}
|
{5,1,6,3,2,4,7}
|
Q1.Union(Q2)
|
{4,2,9,6,1,7}
|
{}
|
{4,2,9,6,1,7}
|
Function call
|
Q1
|
Q2
|
Q3
|
Result
|
---|---|---|---|---|
Q1.Union(Q2, Q3)
|
{6,8,2,3}
|
{3,4,6}
|
{1,7,8}
|
{6,8,2,3,4,1,7}
|
Union(Q1, Q2, Q3)
|
{6,8,2,3}
|
{3,4,6}
|
NULL
|
{6,8,2,3,4}
|