Advertisement
Nuparu00

llllll

Nov 2nd, 2021
2,139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.28 KB | None | 0 0
  1. (defun equal-lists-p (a b)
  2.   (or (and (null a) (null b))
  3.       (and (consp a)
  4.            (consp b)
  5.            (eql (car a) (car b))
  6.            (or
  7.             (and
  8.              (not (cdr a))
  9.              (not (cdr b)))
  10.             (equal-lists-p (cdr a) (cdr b))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement