[RFC]: add `@stdlib/iter/cuevery`
Description
This RFC proposes adding the package @stdlib/iter/cuevery, which cumulatively tests whether every iterated value is truthy. The function should be a transform iterator, continuing to iterate while source iterator values are available.
var array2iterator = require( '@stdlib/array/to-iterator' );
var arr = array2iterator( [ true, true, true, false, true ] );
var it = iterCuEvery( arr );
var v = it.next().value;
// returns true
v = it.next().value;
// returns true
v = it.next().value;
// returns true
v = it.next().value;
// returns false
v = it.next().value;
// returns false
var bool = it.next().done;
// returns true
Related Issues
No.
Questions
No.
Other
- See also
@stdlib/iter/every
Checklist
- [X] I have read and understood the Code of Conduct.
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with
RFC:.
I'd like to work on this. @kgryte
Sounds good! Thanks for volunteering to work on this, @RidamGarg!
i would liketo work on this issue kindly assign this to me
@kgryte please assign it to @Dipti0704 not getting much time to work on this. Thank You!
Done. @Dipti0704 Please feel free to submit a PR implementing this feature.
thanks for assigning.. i will soon raise a pr sir
i am working on this will pr in ~24h