core-ktx / androidx.util / android.util.SparseBooleanArray / getOrElse

getOrElse

inline fun SparseBooleanArray.getOrElse(key: Int, defaultValue: () -> Boolean): Boolean

Return the value corresponding to key, or from defaultValue when not present.