0.0.2 • Published 7 years ago
magic-boxes v0.0.2
Once you finally understand monads, you lose the ability to explain monads to others.
Douglas Crockford
Magic Boxes
This is toy realization of Monads just to understand them. Well, that was the main idea. :/
Installation
npm install --save magic-boxes
IO (Input/Output) Monad
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';Building yourself
git clone https://github.com/SirMoustache/magic-boxes.git
cd magic-boxes
npm installBuild
npm run buildPrettify files
npm run prettifyTest
npm testPublish to npm
npm publishBumping a patch version
npm version patchTODO
- IO Monad
- IO Monat examples
- More items to TODO list