https://github.com/agmoss/fnctnl
Either Monad
https://github.com/agmoss/fnctnl
functional-programming
Last synced: 8 months ago
JSON representation
Either Monad
- Host: GitHub
- URL: https://github.com/agmoss/fnctnl
- Owner: agmoss
- Created: 2020-06-29T23:25:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T23:19:49.000Z (over 5 years ago)
- Last Synced: 2025-07-14T05:13:54.126Z (8 months ago)
- Topics: functional-programming
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/fnctnl
- Size: 78.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fnctnl [](https://www.npmjs.com/package/fnctnl)
> Functional programming utilities
## Either
A value with two possibilities. `Left` holds an error outcome while `Right` holds the success outcome. Useful to represent the outcome of a computation that might fail.
```typescript
export type Either = Left | Right;
```