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
Is your feature request related to a problem? Please describe.
I thought a shuffle method would update an array in place.
Describe the solution you'd like
Two methods: shuffle and toShuffled (similar to built in methods reverse and toReversed, sort and toSorted, etc.): one for updating the array in place and the other for returning a new array.
Describe alternatives you've considered
Extracting the implementation and maintaining my own in-place shuffle method. That would not be ideal though.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I thought a shuffle method would update an array in place.
Describe the solution you'd like
Two methods:
shuffle
andtoShuffled
(similar to built in methodsreverse
andtoReversed
,sort
andtoSorted
, etc.): one for updating the array in place and the other for returning a new array.Describe alternatives you've considered
Extracting the implementation and maintaining my own in-place shuffle method. That would not be ideal though.
The text was updated successfully, but these errors were encountered: