getOrSet

inline fun <T : Any> Array<T?>.getOrSet(index: Int, defaultValue: () -> T): T