firstOrElse

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

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

Since

1.4.0

See also