fourth

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

Returns the fourth element.

Throws

if the list has fewer than four elements.