first

fun first(): T

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

Since

1.4.0

See also

Throws

NoSuchElementException

if pool is empty.