@medv/list
Immutable List in JavaScript
Last updated 2 years ago by medv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @medv/list 
SYNC missed versions from official npm registry.

@medv/list

Build Status

Immutable lists in JavaScript without [] and {}

Install

npm install @medv/list

Usage

This implementation requires tail calls optimization which for now available only in Safari and in node only with --harmony-tailcalls flag.

const {list, reverse, print} = require('@medv/list')

const a = list(1, list(2, list(3)))
const b = reverse(a)

print(a) // (1 2 3)
print(b) // (3 2 1)

For all available functions and documentation see index.js

License

MIT

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 10
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |