Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (defun isLpairs-iterative(q)
  2. (cond
  3.  
  4. ((not (listp q)) nil) ;if q is not a list, return nil
  5. ((eq nil (car q)) t) ;if q is an empty list, return t
  6. ((not (listp (car q))) nil) ;if car q is not a list, return nil
  7.  
  8. ( (do ((x 1 (+ x 1)))
  9. ((= (length (nth x q)) 2) t)
  10. ) t
  11. )
  12. (t (nil))
  13. )
  14. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement