orEmpty

inline fun <T> Sequence<T>?.orEmpty(): Sequence<T>(source)

Returns this sequence if it's not null and the empty sequence otherwise.

Since Kotlin

1.3

Samples