klyn.collections.List.addAll
method

    public addAll(values as IList<T>) as Void

Description

Appends every element from a read-only list.

This operation is intentionally named `addAll` instead of overloading `add(values)` so a list can still contain another list as one element.

Parameters

Parameter | Description
--- | ---
`values` | Elements appended in iteration order.

Example

    import klyn.collections

    data = [10]
    data.addAll([20, 30])
    print(data)  # [10, 20, 30]