W3cubDocs

/Kotlin

addAll

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
abstract fun addAll(elements: Collection<E>): Boolean

Adds all of the elements of the specified collection to the end of this list.

The elements are appended in the order they appear in the elements collection.

Return true if the list was changed as the result of the operation.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
abstract fun addAll(
    index: Int, 
    elements: Collection<E>
): Boolean

Inserts all of the elements of the specified collection elements into this list at the specified index.

Return true if the list was changed as the result of the operation.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/add-all.html