Advertisement
PonaFly

Untitled

Apr 19th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (define (unique lst)
  2. (define (reverse-pair pair)
  3. (cons (cdr pair) (car pair)))
  4. (define (searching lest rez)
  5. (if (empty? lest) rez
  6. (if (or (member (car lest) rez) (member (reverse-pair (car lest)) rez)) (searching (cdr lest) rez)
  7. (searching (cdr lest) (cons (car lest) rez)))))
  8. (searching lst '()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement