third

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

Returns third element.

Throws: NoSuchElementException - if the list size is 2.