klyn.collections.List.addAll
method

    public addAll(index as Int, values as Tuple) as Void

Description

Inserts every element from a tuple at the requested index.

Tuple elements are cast to the list element type.

Parameters

Parameter | Description
--- | ---
`index` | Zero-based insertion index in `[0, size]`.
`values` | Tuple 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]