typescript-monads
typescript-monads copied to clipboard
📚Write safer TypeScript using Maybe, List, Result, and Either monads.
I've added methods to both Result and Maybe which will automatically unwrap and wrap Promises with more intuitive behavior when mapping async functions
When I use `none` function, it return a "IMaybe" interface instead of "Maybe", but there is no "toResult" in "IMaybe", so, it is not a "Maybe". If I set 'strict'...
Rather frequently, I'm collapsing collections of Result and needing a way to easily collapse values together in Ok, or toggle the Result to Fail if it exists. Using Rust as...