-
-
Notifications
You must be signed in to change notification settings - Fork 0
[RFC]: add ndarray/base/while-each #273
Copy link
Copy link
Open
stdlib-js/stdlib
#11908Labels
FeatureTask to add a new feature.Task to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: 4-8hrsTask which should take between 4 to 8 hours.Task which should take between 4 to 8 hours.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.🤖 AIAllowed to use AI.Allowed to use AI.
Metadata
Metadata
Assignees
Labels
FeatureTask to add a new feature.Task to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: 4-8hrsTask which should take between 4 to 8 hours.Task which should take between 4 to 8 hours.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.🤖 AIAllowed to use AI.Allowed to use AI.
This API is similar to
ndarray/base/for-each, except that a provided function is only invoked while a predicate function returns true. Once the predicate function returnsfalse, the function should immediately return.API signature:
where
Both the predicate and callback functions should be provided the following arguments:
This package should be very similar to
ndarray/base/for-eachexcept that the inner loop logic becomes: