projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4426823
)
Add while loop to Common Lisp
author
David Vazquez
<davazp@gmail.com>
Fri, 14 Dec 2012 18:58:09 +0000
(18:58 +0000)
committer
David Vazquez
<davazp@gmail.com>
Fri, 14 Dec 2012 18:58:09 +0000
(18:58 +0000)
lispstrack.lisp
patch
|
blob
|
history
diff --git
a/lispstrack.lisp
b/lispstrack.lisp
index
c352d71
..
43609b9
100644
(file)
--- a/
lispstrack.lisp
+++ b/
lispstrack.lisp
@@
-1,5
+1,10
@@
;;; Utils
+(defmacro while (condition &body body)
+ `(do ()
+ ((not ,condition))
+ ,@body))
+
;;; simplify me, please
(defun concat (&rest strs)
(reduce (lambda (s1 s2) (concatenate 'string s1 s2))