W3cubDocs

/Kotlin

none

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

Returns true if the collection has no elements.

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

Returns true if no elements match the given predicate.

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

Returns true if the map has no entries.

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

Returns true if no entries match the given predicate.

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

Returns true if the array has no elements.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/none.html