utils

Home > @silence_zhpf/utils > HashSet > union

HashSet.union() method

该函数返回一个新的 HashSet,它是当前 HashSet 和另一个 HashSet 的并集。

Signature:

union(other: HashSet<T>): HashSet<T>;

Parameters

Parameter Type Description
other HashSet<T> 另一个HashSet<T>对象。

Returns:

HashSet<T>

两个HashSet的并集。