second

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

Returns the second element.

Throws

if the list has less than 2 elements.