elementAtOrNull

fun <T> Sequence<T>.elementAtOrNull(index: Int): T?(source)

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

The operation is terminal.

Since Kotlin

1.0

Samples