Having a `List<Either<Throwable, Int>>` what's the...
# arrow
d
Having a
List<Either<Throwable, Int>>
what's the best way to filter out only
Right
values and then get a
List<Int>
discarding left values? I can do a
filter + map
, but is there 2 in 1 option available? UPD. I have found that I can do
list.mapNotNull { it.getOrNull() }
💪 1