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

getOrElse

inline fun SparseLongArray.getOrElse(key: Int, defaultValue: () -> Long): Long

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