kotlin.text.takeWhile

takeWhile

inline fun CharSequence.takeWhile(
    predicate: (Char) -> Boolean
): CharSequence

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

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

Returns a string containing the first characters that satisfy the given 登录查看完整内容