João Gabriel Zó
10/03/2022, 3:06 PMwhen (either) {}
everywhere.
Any ideas?Wesley Hartford
10/03/2022, 3:10 PMEither.tap
and Either.tapLeft
?simon.vergauwen
10/04/2022, 12:38 PMtap
and tapLeft
allow you to run a function and peek the value without adjusting the final result.
They're going to be renamed to onRight
and onLeft
in line with Result#onSuccess
and Result#onFailure
from Kotlin Std btw. Just plugging this here again in an attempt to get more feedback, this might also give you a better overview of the functionality available for Either @João Gabriel Zó.
https://github.com/arrow-kt/arrow/pull/2830