[dead, use core.streams] Monadic streams with lots of cool combinators to manipulate and abstract over them!
JavaScript LiveScript Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
docs
src
test
.hgignore
.travis.yml
LICENCE
README.md
package.json

README.md

Lazysex

experimental Build Status Dependencies Status

Monadic streams with lots of cool combinators to manipulate and abstract over them!

IOW, fucking lazy. Fucking functional. Fucking sequences.

Example

var s = require('lazysex')
var naturals = s.iterate(function(n) { return n + 1 }, 0)
var squared  = naturals.map(function(n) { return n * n })

squared.take(10) // => [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]

Installing

Just grab it from NPM:

$ npm install lazysex

Documentation

A quick reference of the API can be built using Calliope:

$ npm install -g calliope
$ calliope build

Tests

On Node:

$ npm test

Platform support

This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :3

browser support

Licence

MIT/X11. ie.: do whatever you want.