Skip to content

Instantly share code, notes, and snippets.

@gogotanaka
Created January 15, 2016 03:49
Show Gist options
  • Save gogotanaka/6ce2a540caa674793e0d to your computer and use it in GitHub Desktop.
Save gogotanaka/6ce2a540caa674793e0d to your computer and use it in GitHub Desktop.
mini
(defun _null (x)
(eq x NIL))
(defun _or (x y)
(if x t (if y t NIL)))
(defun _not (x)
(if x NIL t))
(defun _and (x y)
(_not (_or (_not x) (_not y))))
(defun _list (x y)
(cons x (cons y NIL)))
(defun _append (x y)
(if (_null x) y
(cons (car x) (_append (cdr x) y))))
; if, cons, eq, car, cdr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment