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