Guest User

Untitled

a guest
Jan 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. (defun delete_elem(x y)
  2. ;;check if list is empty -- stop case
  3. (cond
  4. ((null x) nil)
  5. ((equal y (car x)) (delete_elem (cdr x) y)
  6. (t (cons (car x) (delete_elem (cdr x) y))
  7. ))))
Add Comment
Please, Sign In to add comment