add macro to lib.lisp

This commit is contained in:
yoyo 2024-09-12 11:26:04 +09:00
parent ba39b84914
commit 023758b4a7

View File

@ -20,5 +20,13 @@
(cond (expr) (`(or ,@rest)))
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))