dropLastWhile

Returns a subsequence of this char sequence containing all characters except last characters that satisfy the given predicate.

Since Kotlin

1.0

Samples


inline fun String.dropLastWhile(predicate: (Char) -> Boolean): String(source)

Returns a string containing all characters except last characters that satisfy the given predicate.

Since Kotlin

1.0

Samples