Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (dedup/e lst)
- (cond
- [(empty? lst) empty]
- [(member? (first lst) (rest lst))
- (cons (first lst) (dedup/e (remove-all (first lst) (rest lst))))]
- [else (cons (first lst) (dedup/e (rest lst)))]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement