Returning a vector having squared, sorted (ascending) of the argument (vector)

.sort_unstable() is returning some kind of () but i need Vec

sort_unstable sorts the Vec in place, as you can see from the method signature. It doesn't sort and return a new Vec.


1 Like

:roll_eyes: Thnks dear!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.