lastOrElse

inline fun lastOrElse(defaultValue: () -> T): T

Returns the last value, or the result of the defaultValue function if there was no entry.

Since

1.4.0

See also