ibcoleman
01/04/2021, 9:28 PMMarko Novakovic
01/04/2021, 9:48 PMflatMap {}, map {} and fold {}, fold {} not is this particular example but you have that for checkingibcoleman
01/04/2021, 10:11 PMJannis
01/04/2021, 10:26 PMinline fun <C> Either<A, B>.flatMapLeft(f: (A) -> Either<C, B>): Either<C, B> if it does not already exist. I think this was previously done using handleErrorWith from MonadError but since that cannot be inline we may need a new function here. The implementation is basically just swap().flatMap { f(it).swap() }.swap()simon.vergauwen
01/05/2021, 9:29 AMhandleErrorWith should exist for Either and it should be inline as well.ibcoleman
01/05/2021, 2:31 PM