Advertisement
triclops200

Untitled

Jan 22nd, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.12 KB | None | 0 0
  1. (define contains?
  2.   (lambda (x xs)
  3.     (if (null? xs)
  4.         #f
  5.         (if (eq? x (car xs))
  6.             #t
  7.             (contains? x (cdr xs))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement