penultimate

inline fun <T> Iterable<T>.penultimate(): T

Returns penultimate element.

Throws: NoSuchElementException - if the list size is 1.