Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Created March 5, 2013 04:09
Show Gist options
  • Save v2e4lisp/5087918 to your computer and use it in GitHub Desktop.
Save v2e4lisp/5087918 to your computer and use it in GitHub Desktop.
(defmacro in (list elem)
" first macro nonsense"
(let ((tempvar (make-symbol "is-in")))
`(flet ((is-in (l e)
(if l (if (= (car l) e) t
(is-in (cdr l) e))
nil)))
(is-in ,list ,elem))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment