sdk
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
sdk
sdk
/
com.m8test.script.core.api.wrapper
/
CharSequenceWrapper
/
getOrElse
get
Or
Else
abstract
fun
getOrElse
(
index
:
Int
,
defaultValue
:
(
Int
)
->
Char
)
:
Char
返回指定索引处的元素,如果索引超出范围,则返回默认值。
参考
kotlin.text.getOrElse
Return
指定索引处的元素,如果索引超出范围,则返回默认值。
Parameters
index
元素的索引。
default
Value
用于提供默认值的函数。