0.0.2 • Published 5 years ago

magic-boxes v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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 install

Build

npm run build

Prettify files

npm run prettify

Test

npm test

Publish to npm

npm publish

Bumping a patch version

npm version patch

TODO

  • IO Monad
  • IO Monat examples
  • More items to TODO list