An open API service indexing awesome lists of open source software.

https://github.com/agmoss/fnctnl

Either Monad
https://github.com/agmoss/fnctnl

functional-programming

Last synced: 8 months ago
JSON representation

Either Monad

Awesome Lists containing this project

README

          

# fnctnl [![NPM Package](https://img.shields.io/npm/v/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;
```