blob: 241d759bc269e5a05899af9d79f0d53441f05fdc (
plain)
1
2
3
4
5
6
7
8
9
|
-- !!! ds004 -- nodups from SLPJ p 79
--
module ShouldCompile where
-- SLPJ, p 79
nodups [] = []
nodups [x] = [x]
nodups (y:x:xs) | y == x = nodups (x:xs)
| True = y : nodups (x:xs)
|