News for hackers. Stuff that matters.
Re:What it's like to use Haskell by nemetroid on Wednesday March 26, 2014 @02:37PM (#7475398)
Note that the argument, the list to be sorted, is pattern matched as

    (p:xs)
which means that p is the first element of the list, and xs is the rest of the elements (i.e., xs does not contain p). In the definition of "greater":

    greater = filter (>= p) xs
, the filter is applied to xs, which means that p will not be included.
Re:What it's like to use Haskell by AnimalMuppet on Wednesday March 26, 2014 @03:21PM (#7475767)
Ah, I see. Thanks!