Returns a new set containing all elements that are in either this set or the other set (or both).
Example:
var a = new HashSet<string> (GLib.str_hash, GLib.str_equal);
a.add ("1");
a.add ("2");
var b = new HashSet<string> (GLib.str_hash, GLib.str_equal);
b.add ("2");
b.add ("3");
var u = a.union (b);
assert (u.size () == 3);
| other |
the other set. |
|
a new set representing the union. |