add macro to lib.lisp
This commit is contained in:
parent
ba39b84914
commit
023758b4a7
@ -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))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user