kotlin.collections.count
count
fun <T> Iterable<T>.count(): Int
inline fun <T> Collection<T>.count(): Int
Returns the number of elements in this collection.
inline fun <T> Iterable<T>.count( predicate: (T) -> Boolean ): Int
inline fun <T> Array<out T>.count( predicate: (T) -> Boolean ): Int
inline fun ByteArray.count(predicate: (Byte) -> Boolean): Int
登录查看完整内容