0.0.4 • Published 12 years ago

bassline v0.0.4

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

Bassline

Bassline is a JavaScript library that exposes two primary types, maybe and either. The maybe type may be used to model an optional value. The constructor functions nothing and just create a maybe. The either type is used to represent values with two possibilities. The constructor functions left and right create such values.

Installation

  • Install Bassline with NPM

      npm install bassline

Getting Started: Hello World

var bassline = require("bassline")
  , just = bassline.just;

console.log(just("Hello").fmap(function(a){return a + " World";}).get);

$ node hello.js
Hello World
0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago