-
Notifications
You must be signed in to change notification settings - Fork 118
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 and use algorithms for managing iterable #2534
Conversation
✔️ 7303b74 -> Azure artifacts URL |
Codecov Report
@@ Coverage Diff @@
## master #2534 +/- ##
==========================================
+ Coverage 61.49% 61.53% +0.03%
==========================================
Files 623 625 +2
Lines 119197 119263 +66
==========================================
+ Hits 73296 73384 +88
+ Misses 45901 45879 -22
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✔️ 1c212db -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
✔️ 9ab62bd -> Azure artifacts URL |
✔️ 57535b9 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
✔️ c75d0fc -> Azure artifacts URL |
I checked the commits from |
Basic algorithms:
void apply_to_first(iterable, value, function)
applyfunction
to the firstvalue
ofiterable
. If not found, do nothing.void erase_first(iterable, value)
erase the firstvalue
of theiterable
.Algorithms designed for range-based for loops:
THINGS enumerate(iterable)
return a pair ofindex
andvalue
from aniterable
forward.THINGS renumerate(iterable)
return a pair ofindex
andvalue
from aniterable
backward.THINGS reverse(iterable)
return thevalue
ofiterable
in a backward way.THINGS range(iterable)
return all theindex
from aiterable
forward.