nlattessi

Seminario_TP4_EJ01

May 23rd, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.20 KB | None | 0 0
  1. (defun pertenece (a l)
  2.     (if (null l) nil
  3.         (if (atom (car l))
  4.             (if (eq a (car l))
  5.                 t
  6.                 (pertenece a (cdr l))
  7.             )
  8.             (if (pertenece a (car l))
  9.                 t
  10.                 (pertenece a (cdr l))
  11.             )
  12.         )
  13.     )
  14. )
Advertisement
Add Comment
Please, Sign In to add comment