Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define delete-duplicates
- (case-lambda
- [(lst) (delete-duplicates lst =)]
- [(lst cmp)
- (let loop ([lst lst])
- (if (null? lst)
- lst
- (cons (car lst) (loop (delete (car lst) (cdr lst) cmp)))))]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement