last

fun last(): T

Returns the last value or throws an exception if pool is empty.

Since

1.4.0

See also

Throws

NoSuchElementException

if pool is empty.