tginiotis
05/21/2018, 3:32 PMLeft
value from a list of Either
types?
I am currently doing it like so:
listOf(either1, either2, either3).first{
it.isLeft()
}.swap().getOrHandle { Unit } // there will be a value for sure, no need to handle
or is this fine?