Returns the elements as a native array.
Example:
var set = new HashSet<string> (GLib.str_hash, GLib.str_equal);
set.add ("a");
set.add ("b");
T[] arr = set.toArray ();
assert (arr.length == 2);
|
a new array containing all elements. |