Nitrogen Poisonous Monoxide
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

@medv/list

1.0.1 • Public • Published

@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

install

npm i @medv/list

Downloadsweekly downloads

4

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability