Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

lazyList

A lazy list implementation with generator and iterator

install

npm i @nodew/lazylist

source code intro

tree src ->

src
├── index.ts
├── generators.ts
├── operators.ts
├── wrap.ts
├── reusable.ts
├── utils.ts
└── classic.ts

generators.ts

some basic generators such as repeat、cycle、range and so on.

operators.ts

operators on series, map/filter/take/drop/zip...

wrap.ts

helper function for cache evaluated values, while native iterator only do next by next until done is true, you can't re-call it from begin at next time.

reusable.ts

wrap operators and generators up, the return value is reusable.

classic.ts

classic infinite list implementations, such as fibonacci and primes.

About

A lazy list implementation with generator and iterator

Topics

Resources

Packages

No packages published