git » jacl.git » commit 5bf893d

let*

author Alan Dipert
2020-02-23 21:45:01 UTC
committer Alan Dipert
2020-02-23 21:45:01 UTC
parent 4df32ed4a08400fddb489682ac16791170d6926e

let*

boot.lisp +7 -0

diff --git a/boot.lisp b/boot.lisp
index 2df34a6..be5f2f0 100644
--- a/boot.lisp
+++ b/boot.lisp
@@ -166,6 +166,13 @@
            (when ,x (and ,@(cdr forms)))))
       t))
 
+(%export 'let*)
+(defmacro let* (bindings &rest body)
+  (if bindings
+      `(let (,(car bindings))
+         (let* ,(cdr bindings) ,@body))
+      `(progn ,@body)))
+
 (%export 'listp)
 (defun listp (x)
   (or (null x) (consp x)))