Kotlin HashSet removeAll()
Syntax & Examples


Syntax of HashSet.removeAll()

The syntax of HashSet.removeAll() function is:

fun removeAll(elements: Collection<E>): Boolean

This removeAll() function of HashSet removes all of this collection's elements that are also contained in the specified collection.