[Haskell-beginners] Beginners Digest, Vol 45, Issue 35

Chaddaï Fouché chaddai.fouche at gmail.com
Thu Mar 29 10:30:55 CEST 2012


On Thu, Mar 29, 2012 at 10:28 AM, Chaddaï Fouché
<chaddai.fouche at gmail.com> wrote:
>> unique xs = nub (sort xs)

oops, I meant :

> unique = concat . filter (null . drop 1) . group . sort

-- 
Jedaï



More information about the Beginners mailing list