getOrNull

fun getOrNull(index: Int): T?

May return the element at the specified position in this list or null.

Return

The element at the specified position in this list or null if the index exceeds the list's bounds.

Parameters

index

Index of the element to return.