first

fun first(): Long(source)

Returns the first element in the LongList or throws a NoSuchElementException if it isEmpty.


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

Returns the first element in the LongList for which predicate returns true or throws NoSuchElementException if nothing matches.

See also