asSequence

Returns a new sequence for this Optional's value if present, or otherwise an empty sequence.

Since Kotlin

1.8