2 ms·
??? https://github.com/non/spire/blob/master/core/src/main/scala/spire/math/Sorting.scala https://github.com/non/spire/blob/master/core/src/main/scala...
by frowaway001 13y ago
???
https://github.com/non/spire/blob/master/core/src/main/scala/spire/math/Sorting.scala https://github.com/non/spire/blob/master/core/src/main/scala...
- taeric 13y agoHa! Fair enough, though I was thinking something different in two ways. Namely, something that worked on the common collections used by people and more readable than this. Still, bad example.
- frowaway001 13y agoThat doesn't make sense. The whole point of quicksort's algorithm is to do things in place, which requires fast indexed access and mutability. Common collections lack both of these things.