Once you finally understand monads, you lose the ability to explain monads to others.
Douglas Crockford
This is toy realization of Monads just to understand them. Well, that was the main idea. :/
npm install --save magic-boxes
So this is like a cheat in FP world. Impure function stays pure until you run it. So push this run to the edges or even outside of applications with lazy functions.
Usage
import { IO } from 'magic-boxes';
git clone https://github.com/SirMoustache/magic-boxes.git
cd magic-boxes
npm install
npm run build
- IO Monad
- IO Monat examples
- More items to TODO list