fun <T> Sequence<T>.first(): T
Returns first element.
NoSuchElementException - if the sequence is empty.
NoSuchElementException
inline fun <T> Sequence<T>.first( predicate: (T) -> Boolean ): T
Returns the first element matching the given predicate.
联系方式: