any

fun <K, V> Map<out K, V>.any(): Boolean (source)

Returns true if map has at least one entry.

inline fun <K, V> Map<out K, V>.any(
    predicate: (Entry<K, V>) -> Boolean
): Boolean
(source)

Returns true if at least one entry matches the given predicate.

fun <T> Array<out T>.any(): Boolean (source)
fun ByteArray.any(): Boolean (source)
fun ShortArray.any(): Boolean (source)
fun IntArray.any(): Boolean (source)
fun LongArray.any(): Boolean (source)
fun FloatArray.any(): Boolean (source)
fun DoubleArray.any(): Boolean (source)
fun BooleanArray.any(): Boolean (source)
fun CharArray.any(): Boolean (source)

Returns true if array has at least one element.

inline fun <T> Array<out T>.any(
    predicate: (T) -> Boolean
): Boolean
(source)
inline fun ByteArray.any(
    predicate: (Byte) -> Boolean
): Boolean
(source)
inline fun ShortArray.any(
    predicate: (Short) -> Boolean
): Boolean
(source)
inline fun IntArray.any(predicate: (Int) -> Boolean): Boolean (source)
inline fun LongArray.any(
    predicate: (Long) -> Boolean
): Boolean
(source)
inline fun FloatArray.any(
    predicate: (Float) -> Boolean
): Boolean
(source)
inline fun DoubleArray.any(
    predicate: (Double) -> Boolean
): Boolean
(source)
inline fun BooleanArray.any(
    predicate: (Boolean) -> Boolean
): Boolean
(source)
inline fun CharArray.any(
    predicate: (Char) -> Boolean
): Boolean
(source)
inline fun <T> Iterable<T>.any(
    predicate: (T) -> Boolean
): Boolean
(source)

Returns true if at least one element matches the given predicate.

fun <T> Iterable<T>.any(): Boolean (source)

Returns true if collection has at least one element.