second

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

Returns the second element.

Throws

if the list has fewer than two elements.