-
Notifications
You must be signed in to change notification settings - Fork 138
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
Introduce reverse
in Fixed/Variable sized Array type
#2654
Conversation
Nit: I'm not sold on the naming here. How about having this reverse-and-copy function be called |
Codecov Report
@@ Coverage Diff @@
## master #2654 +/- ##
==========================================
+ Coverage 78.53% 78.57% +0.03%
==========================================
Files 338 338
Lines 78143 78217 +74
==========================================
+ Hits 61373 61457 +84
+ Misses 14483 14474 -9
+ Partials 2287 2286 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@dsainati1 I was trying to follow the Swift convention but your suggestion does sound clearer. Will update this and the other PR accordingly. |
efc9ece
to
d0e2019
Compare
reversed
in Fixed/Variable sized Array typereverse
in Fixed/Variable sized Array type
1cfdc6e
to
344ce6a
Compare
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.
LGTM! Just some minor suggestions
Co-authored-by: Supun Setunga <[email protected]>
Co-authored-by: Supun Setunga <[email protected]>
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.
Nice!
Work towards #2605
Description
Introduce
reverse
function for creating a copy of a Variable/Fixed size Array value with its entries reversed.This function would be unavailable to resource arrays since resources cannot be copied.
Will send docs PR post the merge.
master
branchFiles changed
in the Github PR explorer