HN2new | past | comments | ask | show | jobs | submitlogin

It would be pretty difficult to write an in-place sort in Haskell, given that it only has mutable state through monads (and I doubt anyone wants to go into a monad just to sort something). GHC is pretty good at optimizing list concatenations, so that's probably not a big deal either. You're absolutely right about the two-pass filter, though.


It's not that good, which is why they gave up on using quicksort in Data.List .




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: