from CollectionsKt: ``` public inline fun <T&gt...
# announcements
d
from CollectionsKt:
Copy code
public inline fun <T> Iterable<T>.any(predicate: (T) -> Boolean): Boolean {
    if (this is Collection && isEmpty()) return false
    for (element in this) if (predicate(element)) return true
    return false
}
Why is the first
if
statement there? Is this for speed reasons?
👌 5