isEmpty

fun <T> Iterable<T>.isEmpty(): Boolean

Returns true if the iterable is empty. If this is a Collection, uses isEmpty, otherwise creates iterator and verifies whether it has next value.

Sources

Katlib source
Link copied to clipboard