GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - code-cb/iterator: 🌡 An implementation of the Iterator helpers proposal

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
rollup.config.ts
rollup.config.ts
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

@codecb/iterator

🌡 An implementation of the Iterator helpers proposal.

Note: This implementation does not strictly follow the proposal. It creates a new base class and works on interfaces (Iterator, AsyncIterator, Iterable, and AsyncIterable) rather than inheriting from the real, native %IteratorPrototype% object which is quite awkward to access.

The interesting aspect of this project is it uses Generator and AsyncGenerator which makes it super easy to handle iteration operations comparing to writing a next function ourselves.

See test cases to have a taste of what these helpers do and how to use them.

References

  1. [GitHub] tc39/proposal-iterator-helpers
  2. [tc39.es] Iterator Helpers
  3. [2ality] ECMAScript proposal: iterator helpers
  4. [GitHub] nvie/itertools.js
  5. [GitHub] more-itertools/more-itertools
  6. [Rust] Trait std::iter::Iterator
  7. [Python] itertools — Functions creating iterators for efficient looping

About

🌡 An implementation of the Iterator helpers proposal

Topics

iteratoriterator-helpersiterator-helpers-proposal

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.