abs icon indicating copy to clipboard operation
abs copied to clipboard

sort / reverse modify arrays in-place

Open odino opened this issue 5 years ago • 1 comments

possibly strings as well -- and there might be some other functions that modify things in place themselves...shuffle / flatten etc all work on a copy.

It'd be good to just unify this behavior...

odino avatar Sep 21 '20 18:09 odino

While unifying is great, I'd unify on the "returns a copy of the modified array/string" direction. If you ever want to get into threading or anything, immutability goes a long way in eliminating all sorts of race conditions

mcampbell avatar Sep 07 '21 13:09 mcampbell