summaryrefslogblamecommitdiff
path: root/1-10/t.hs
blob: 6a4448d30cf34c29b6c81aea84c7ec8c0ce66c23 (plain) (tree)
1
2

                                                          
grp [] = []
grp (x:xs) = (x:(filter (==x) xs)):(grp $ filter (/=x) xs)