getOrElse

inline fun ObservableFloatArray.getOrElse(index: Int, defaultValue: (Int) -> Float): Float
inline fun ObservableIntegerArray.getOrElse(index: Int, defaultValue: (Int) -> Int): Int

Returns an element at the given index or the result of calling the defaultValue function if the index is out of bounds of this array.

See also