public native addAll(index as Int, values as Set<T>) as Void
Inserts every element from a set at the requested index.
Set iteration order is implementation-defined.
| Parameter | Description |
|---|---|
index | Zero-based insertion index in [0, size]. |
values | Elements inserted from the set. |
data = s:[0, 99]
data.addAll(1, {10, 20})
print(data.size) # 4