Vavr integration for Kotlin
Vavr Kotlin is a set of Kotlin niceties for the Vavr functional collections library:
sequence
Import Vavr Kotlin as follows:
import io.vavr.kotlin.*
Profit:
val optionOf: Option<Seq<Int>> = list(some(1), some(2), none()).sequence()
See the Wiki for detailed API.