You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to comment about this in #47203, but it's been locked, unfortunately. I needed a reverse function for something so I did a manual loop with the intention of replacing it with a call to slices.Reverse() when Go 1.18 comes out, but to my surprise it doesn't seem to have even been proposed. The only equivalent in the standard library that I saw was sort.Reverse(), but that's really inefficient, and a lot more complicated to use, than just a simple reverse.
I wanted to comment about this in #47203, but it's been locked, unfortunately. I needed a reverse function for something so I did a manual loop with the intention of replacing it with a call to
slices.Reverse()
when Go 1.18 comes out, but to my surprise it doesn't seem to have even been proposed. The only equivalent in the standard library that I saw wassort.Reverse()
, but that's really inefficient, and a lot more complicated to use, than just a simple reverse.The proposal's very simple:
The text was updated successfully, but these errors were encountered: