Guest User

Untitled

a guest
Jun 8th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.24 KB | None | 0 0
  1. (defun intersection-mark (x y)
  2.   (cond ((null x) (do ((c 0 (1+ c))
  3.                (l nil (if (get (nth c y) 'tag)
  4.                   (cons (nth c y) l)
  5.                   l)))
  6.               ((= c 5) l)))
  7.     (t (and (setf (get (car x) 'tag) t)
  8.         (intersection-mark (cdr x) y)))))
Advertisement
Add Comment
Please, Sign In to add comment