tim
06/17/2020, 5:38 PMval numbers = listOf(1, 2, 3, 4)
val strings = numbers.map { somethingThatReturnsEither(it) }
// Here I'd like to map strings and put Lefts into one list and Rights into another list
return Tuple2(failures, successes)
Hopefully that makes sense. I could just do a forEach and put everything into lists manually, but I'm hoping there's an FP way hereraulraja
06/17/2020, 5:48 PMtim
06/17/2020, 6:03 PMtim
06/17/2020, 6:07 PMraulraja
06/17/2020, 9:57 PMraulraja
06/17/2020, 9:58 PM