Guest User

Untitled

a guest
Jun 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. (defun match1 (p s)
  2. (cond ((atom p) (cond ((atom s) t)
  3. (t nil)))
  4. ((atom s) nil)
  5. ;; p is a list s is an atom
  6. ((match1 (first p) (first s)) (cond ((match1 (rest p) (rest s)) t)
  7. (t nil)))
  8. (t nil)))
Add Comment
Please, Sign In to add comment