Luke Gorrie writes: > I've always liked this one that Magnus Fröberg showed me years ago: > > remove_dups([]) -> []; > remove_dups([H|T]) -> [H | [X || X <- T, X /= H]]. This is wrong, you probably mean remove_dups([]) -> []; remove_dups([H|T]) -> [H | [X || X <- remove_dups(T), X /= H]]. -- Thomas