elementAt

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

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

The operation is terminal.

Since Kotlin

1.0

Samples