persistent-list
v0.1.0
Published
> A persistent, singly linked list, similar to Haskell's `[a]` type.
Downloads
5
Readme
persistent-list
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