News for hackers. Stuff that matters.
Re:What it's like to use Haskell by probably_wrong on Wednesday March 26, 2014 @02:40PM (#7475425)
If I'm reading the code correctly: given the list [5,5,2,3] and the match (p:xs), p will match to the first 5 and xs will match to [5,2,3].

Once the matching is done, the pivot is no longer in the list xs, and therefore it won't be included twice.

There are no comments on this comment yet.