eithermaybe.ts

1.0.1 • Public • Published

eitherMaybe.ts

Either and Maybe monads written in Typescript

Install it

npm install eithermaybe.ts

Either Monad

The either monad has a type of either Right or Left

You can use this monad for computations that can 'go right or wrong' by returning value.

The happy path has the Right type and the unhappy path has the Left type.

On how to use it check:

Maybe Monad

The maybe monad has a type of either Just or Nothing.

You can use this monad for computations that can 'go right' by returning a value or 'go wrong' by not returning a value.

The happy path has the Just type and the unhappy path has the Nothing type.

On how to use it check:

Package Sidebar

Install

npm i eithermaybe.ts

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.8 kB

Total Files

8

Last publish

Collaborators

  • evangl