third

fun <T> List<T>.third(): T

Returns the third element.

Throws

if the list has fewer than three elements.