retainAll
Retains only the elements in this collection that are contained in the specified collection.
Since Kotlin
1.3Return
true
if any element was removed from the collection, false
if the collection was not modified.
Retains only the elements in this collection that are contained in the specified collection.
Since Kotlin
1.1Return
true
if any element was removed from the collection, false
if the collection was not modified.
Retains only the elements in this collection that are contained in the specified collection.
Since Kotlin
1.3Return
true
if any element was removed from the collection, false
if the collection was not modified.
Retains only the elements in this collection that are contained in the specified collection.
Since Kotlin
1.8Return
true
if any element was removed from the collection, false
if the collection was not modified.
Retains only the elements in this collection that are contained in the specified collection.
Since Kotlin
1.8Return
true
if any element was removed from the collection, false
if the collection was not modified.