Specialize Progression first/last/OrNull functions #KT-42178
This commit is contained in:
committed by
Space
parent
cca2680c7f
commit
42c9a27b8a
@@ -63,8 +63,9 @@ public inline fun CharSequence.findLast(predicate: (Char) -> Boolean): Char? {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns first character.
|
||||
* @throws [NoSuchElementException] if the char sequence is empty.
|
||||
* Returns the first character.
|
||||
*
|
||||
* @throws NoSuchElementException if the char sequence is empty.
|
||||
*/
|
||||
public fun CharSequence.first(): Char {
|
||||
if (isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user