kotlin.text.elementAtOrElse

elementAtOrElse

inline fun CharSequence.elementAtOrElse(
    index: Int, 
    defaultValue: (Int) -> Char
): Char

Returns a character at the given index or the result of calling the defaultValue function if the 登录查看完整内容