-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add itertools-ts to TypeScript and JavaScript sections #1395
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repo is mostly inactive, one update 3 weeks ago but only a few commits this year.
Going to close this for now due to worries about inactivity, feel free to reopen this if the repo becomes more active |
@sammyhori Please reopen my PR because the repo is more active now. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution.
This pull request looks okay to me, there is only 1 beginner friendly issue and the repo has become slightly activate again recently - through the owner of the repo (and this pull request).
I have requested a change, feel free to commit it or discuss it with me if you would like.
Co-authored-by: Sammy Hori <[email protected]>
Thank you @sammyhori for your feedback! I've commited you change request. There is indeed only one issue in the project right now, but it includes many tasks for implementing various functions, and it will be updated over time. I also have plans to add several useful functions to the set category myself in the near future, so the repository will remain active. |
itertools-ts ·
Extended itertools port for TypeScript and JavaScript. Provides a huge set of functions for working with iterable collections (including async ones).
Loop Iteration Tools Example
Stream Iteration Tools Example
Pipe Iteration Tools Example
All functions work on iterable collections and iterators:
Array
Set
Map
String
Generator
Iterable
Iterator
Every function have an analog with "Async"-suffixed name for working with async iterable and iterators (e.g.
zip
andzipAsync
):AsyncIterable
AsyncIterator
If an asynchronous function takes other functions as input, they can also be asynchronous.
Stream and Async Stream
Streams provide a fluent interface to transform arrays and iterables (sync or async) through a pipeline of operations.
Streams are made up of:
for
loop.