getOrNull

fun <T> Array<out T>.getOrNull(index: Int): T? (source)
fun ByteArray.getOrNull(index: Int): Byte? (source)
fun ShortArray.getOrNull(index: Int): Short? (source)
fun IntArray.getOrNull(index: Int): Int? (source)
fun LongArray.getOrNull(index: Int): Long? (source)
fun FloatArray.getOrNull(index: Int): Float? (source)
fun DoubleArray.getOrNull(index: Int): Double? (source)
fun BooleanArray.getOrNull(index: Int): Boolean? (source)
fun CharArray.getOrNull(index: Int): Char? (source)

Returns an element at the given index or null if the index is out of bounds of this array.

fun <T> List<T>.getOrNull(index: Int): T? (source)

Returns an element at the given index or null if the index is out of bounds of this list.