12 lines
No EOL
256 B
Kotlin
12 lines
No EOL
256 B
Kotlin
package net.dankito.fints.extensions
|
|
|
|
|
|
fun <T> Collection<T>.containsAny(otherCollection: Collection<T>): Boolean {
|
|
for (otherItem in otherCollection) {
|
|
if (this.contains(otherItem)) {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
} |