3 ms·Check out the Either monad in Haskell. It has an implementation in the JS library funfix.by nesarkvechnep 7y agoCheck out the Either monad in Haskell. It has an implementation in the JS library funfix.