blob: ebbe8e06c227d1a4995e85a0212366ddd9422698 (
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)
|