Not Providing Milkshakes

persistent-list

0.1.0 • Public • Published

persistent-list Build Status

A persistent, singly linked list, similar to Haskell's [a] type.

Install

npm install --save persistent-list

Examples

var list = require('persistent-list');
 
var a = list.empty();
var b = a.insert(5);
b.toArray() === [5];
a.toArray() === [];

API

List.prototype.

  • reduce
  • each/forEach
  • map
  • filter/reject
  • toArray
  • length
  • isCons/isNone

License

MIT

Keywords

none

install

npm i persistent-list

Downloadsweekly downloads

0

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability