union

语法

union(X, Y)X|Y

详情

返回两个集合的并集。

参数

XY 是集合

返回值

一个集合。

例子

x=set([5,5,3,4]);
y=set(8 9 9 4 6);
x | y;
// output: set(8,9,6,4,3,5)