union

语法

union(X, Y) 或 X|Y

参数

XY 是集合

详情

返回两个集合的并集。

例子

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