On Sun, Mar 30, 2014 at 9:06 PM, martin <martin.drautzburg@web.de> wrote:
groupEq (x:xs) = (groupEq a) ++ [x] ++ (groupEq b)
        where
            a = filter (==x) xs
            b = filter (/= x) xs

Why the need to recurse on "a"? It's a list of identical elements!



-- Kim-Ee