infinitelist
infinite sequence list
Last updated 5 years ago by champii .
GPLv2 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install infinitelist 
SYNC missed versions from official npm registry.

InfiniteList

Infinite Sequence List in Javascript

Under developement

/!\ This library use ES6 generators, your node binary must use --harmony flag /!\

Usage

List = require \infinitelist

list = new List 0 (+ 2)

console.log list.get 5 # 10
console.log list       # [0, 2, 4, 6, 8, 10]

API

new List(startValue, iterator)

Iterator is a function of the following form :

(prev, i) ->

With prev the last element in the list, and i the current generating index.

Current Tags

  • 0.0.1                                ...           latest (5 years ago)

1 Versions

  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |