eithermaybe.ts
v1.0.1
Published
Either and Maybe monads written in Typescript
Downloads
3
Maintainers
Readme
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.