Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mdubourg001/monads

Typescript Implementation of some well-known monads.
https://github.com/mdubourg001/monads

Last synced: 26 days ago
JSON representation

Typescript Implementation of some well-known monads.

Awesome Lists containing this project

README

        

**Here are TypeScript implementations of some well-known monads.**

_If you want to know about the basics of Monads, read [this excellent article](http://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html)._

At the moment, the following monads are implemented (see [monads.ts](https://github.com/mdubourg001/monads/blob/master/monads.ts)):
- Maybe (see [maybe.ts](https://github.com/mdubourg001/monads/blob/master/maybe.ts) for usage examples)
- Either (see [either.ts](https://github.com/mdubourg001/monads/blob/master/either.ts) for usage examples)
- IO (see [io.ts](https://github.com/mdubourg001/monads/blob/master/io.ts) for usage examples)