Daniel
10/04/2020, 4:57 PMEither<SomeError, SomeSuccess> to a SomeError? , discarding the SomeSuccess. Does a function like that exist in arrow?
Right now I'm just doing the below, but I wanted to know if there is a more idiomatic way
return when (result) {
            is Either.Left -> result.a
            is Either.Right -> null
        }David Stone
10/04/2020, 7:49 PMDaniel
10/04/2020, 7:50 PM.mapForSideEffect { log(it) }
instead of
.map { log(it); it }David Stone
10/04/2020, 7:57 PMDaniel
10/04/2020, 7:57 PMDavid Stone
10/04/2020, 7:58 PM