tginiotis
05/21/2018, 3:44 PMfirstOption
seems to be the better approach without the guarantees:
listOf(either1, either2, either3).firstOption {
it.isLeft()
}.map {
it.swap().getOrHandle { Unit }
}