/** * "Zooms in" on the value in the `Right` side of an `Either`, moving the * possibility that the value is a `Left` to the error channel. * * @tsplus getter effect/core/io/Effect right */ export function right( self: Effect> ): Effect, B> { return self.foldEffect( (e) => Effect.fail(Either.right(e)), (either) => either.fold((a) => Effect.fail(Either.left(a)), Effect.succeed) ) }