takeLastWhile

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

Since Kotlin

1.0

Samples


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

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

Since Kotlin

1.0

Samples