add macro to lib.lisp
This commit is contained in:
@@ -20,5 +20,13 @@
|
|||||||
(cond (expr) (`(or ,@rest)))
|
(cond (expr) (`(or ,@rest)))
|
||||||
expr))
|
expr))
|
||||||
|
|
||||||
|
(macro when (test . rest)
|
||||||
|
`(if ,test
|
||||||
|
(progn ,@rest)))
|
||||||
|
|
||||||
|
(macro unless (test . rest)
|
||||||
|
`(if (not ,test)
|
||||||
|
(progn ,@rest)))
|
||||||
|
|
||||||
(defun list (x . y) (cons x y))
|
(defun list (x . y) (cons x y))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user