-
-
Notifications
You must be signed in to change notification settings - Fork 995
feat: add iter/cuany-by
#2549
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
feat: add iter/cuany-by
#2549
Conversation
Signed-off-by: Pratham Shirbhate <prathamshirbhate1909@gmail.com>
stdlib-bot
left a comment
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.
👋 Hi there! 👋
And thank you for opening your first pull request! We will review it shortly. 🏃 💨
| Examples | ||
| -------- | ||
| > var arr = {{alias:@stdlib/array/to-iterator}}( [ 0, 0, 0, 1, 0 ] ); | ||
| > var it = {{alias}}( arr ); |
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.
You need to update the example to use a predicate function. It is also missing from the API documentation above.
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.
i checked it and updated, how to solve the lint errrors I am getting
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.
I am not able to figure out what to do next? can you please tell me whate xacty and how to solve the issue
iter/cuany-by
Signed-off-by: Pratham Shirbhate <prathamshirbhate1909@gmail.com>
Signed-off-by: Pratham Shirbhate <prathamshirbhate1909@gmail.com>
Resolves #2335 .
Description
This pull request adds the
iterCuAnyByfunction to the@stdlib/iterpackage. This function creates an iterator that cumulatively tests whether at least one iterated value passes a user-provided predicate function.Key features and changes:
iterCuAnyByfunction, returning an iterator of boolean values.falseuntil a value passes the predicate, then yieldstruefor all subsequent values.Related Issues
This pull request resolves #2335.
Questions
None at this time.
Checklist