kotlin-stdlib / kotlin.collections / HashSet / retainAll retainAll Common 1.0 fun retainAll(elements: Collection<E>): Boolean