News for hackers. Stuff that matters.
Re:Trying Haskell by Hemospectrum on Sunday April 10, 2011 @12:06PM (#2429714)
Haskell is designed to quarantine side effects, not remove them altogether. There's a special monad for building data structures that are mutable at creation time but appear immutable outside that block of code. In normal circumstances, you'd probably still have to copy the contents of the input into a new array before sorting it, though. So, it would still be less memory efficient on large inputs.

There are no comments on this comment yet.