last

Returns the last element.

Since Kotlin

1.7

Throws

if the progression is empty.

Samples