list.addAll
function addAll(index: integer, values: collection<-T>): booleanDeprecated (for removal): Use 'add_all' instead
Insert all elements from a collection at the specified index. Any elements previously occurring at and after the specified index have their indices increased by the size of the given collection. The size of the list increases by the size of the given collection.
Note that for a list my_list:
my_list.add_all(my_list.size(), x)"appends" the elements of the collectionxto the end of the listmy_list.add_all(my_list.size() + 1, x)throws an exception
Note also that my_list.add_all(my_list.size(), x) is equivalent to my_list.add_all(x) (inherited
from collection<T>).
Parameters
- index — the starting index at which to add the elements
- values — the collection containing elements to add
Returns
true
Throws
exception— if the specified index is out of bounds
Since
0.9.0
Alias of list.add_all
function addAll(values: collection<-T>): booleanDeprecated (for removal): Use 'add_all' instead
Add all elements from another collection to the end of this collection.
If this collection does not allow duplicates, then only those elements not already contained in this collection are added.
Parameters
- values — the collection of elements to add
Returns
true if any elements were added to this collection, false if it was not modified
Since
0.9.0
Alias of list.add_all