Created
February 23, 2011 17:43
-
-
Save daniel-cussen/840791 to your computer and use it in GitHub Desktop.
Logical operations to implement Lisp in Lisp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun null. (x) | |
(eq x '())) | |
(defun and. (x y) | |
(cond (x | |
(cond (y 't) | |
('t '()))) | |
('t '()))) | |
(defun or. (x y) | |
(cond (x 't) | |
(y 't) | |
('t '()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment