count
fun ByteArray.count(): Intfun ShortArray.count(): Intfun IntArray.count(): Intfun LongArray.count(): Intfun FloatArray.count(): Intfun DoubleArray.count(): Intfun BooleanArray.count(): Intfun CharArray.count(): IntReturns the number of elements in this array.
inline fun ByteArray.count(predicate: (Byte) -> Boolean): Intinline fun ShortArray.count(
predicate: (Short) -> Boolean
): Intinline fun IntArray.count(predicate: (Int) -> Boolean): Intinline fun LongArray.count(predicate: (Long) -> Boolean): Intinline fun FloatArray.count(
predicate: (Float) -> Boolean
): Intinline fun DoubleArray.count(
predicate: (Double) -> Boolean
): Intinline fun BooleanArray.count(
predicate: (Boolean) -> Boolean
): Intinline fun CharArray.count(predicate: (Char) -> Boolean): Intinline fun <T> Iterable<T>.count(
predicate: (T) -> Boolean
): Int@ExperimentalUnsignedTypes inline fun ULongArray.count(
predicate: (ULong) -> Boolean
): Int@ExperimentalUnsignedTypes inline fun UByteArray.count(
predicate: (UByte) -> Boolean
): Int@ExperimentalUnsignedTypes inline fun UShortArray.count(
predicate: (UShort) -> Boolean
): IntReturns the number of elements matching the given predicate.
fun <T> Iterable<T>.count(): Intfun <T> Collection<T>.count(): IntReturns the number of elements in this collection.