Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (unique lst)
- (define (reverse-pair pair)
- (cons (cdr pair) (car pair)))
- (define (searching lest rez)
- (if (empty? lest) rez
- (if (or (member (car lest) rez) (member (reverse-pair (car lest)) rez)) (searching (cdr lest) rez)
- (searching (cdr lest) (cons (car lest) rez)))))
- (searching lst '()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement