getOrElse

inline fun getOrElse(key: String, defaultValue: () -> T): T

Returns the value for the given key, or the result of the defaultValue function if there was no entry for the given key.

Since

1.4.0

See also