klyn.collections.ArrayList.addAll
method
public native addAll(index as Int, values as Tuple) as Void
Description

Inserts every element from a tuple at the requested index.

Parameters
ParameterDescription
indexZero-based insertion index in [0, size].
valuesTuple whose elements are inserted.
Throws
  • IndexException if index is outside [0, size].
Example
data = [10, 40]
data.addAll(1, (20, 30))
print(data)  # [10, 20, 30, 40]