count

inline fun count(): Int(source)

Returns the number of elements in this list.


inline fun count(predicate: (element: Long) -> Boolean): Int(source)

Counts the number of elements matching predicate.

Return

The number of elements in this list for which predicate returns true.