79428079

Date: 2025-02-10 19:21:06
Score: 0.5
Natty:
Report link

Feels un-ergonomic but I ended up going left with a special "error". I extract the response from it and go right if I see it at the end of the pipe.

pipe(
  ...,
  RTE.orElseW((e) => {
    if (e instanceof Bypass) {
      return RTE.right(e.response)
    }
    return RTE.left(e);
  })
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: financial_physician