Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nodew/lazylist

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodew/lazylist

A lazy list implementation with generator and iterator

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 19 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc