projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0a14f3
)
DO to DOTIMES
author
pdn
<pnathan@vandals.uidaho.edu>
Mon, 17 Feb 2014 06:05:47 +0000
(22:05 -0800)
committer
pdn
<pnathan@vandals.uidaho.edu>
Mon, 17 Feb 2014 06:05:47 +0000
(22:05 -0800)
src/list.lisp
patch
|
blob
|
history
diff --git
a/src/list.lisp
b/src/list.lisp
index
368d098
..
8efb95a
100644
(file)
--- a/
src/list.lisp
+++ b/
src/list.lisp
@@
-202,11
+202,8
@@
(when (< size 0)
(error "Size must be non-negative"))
(let ((newlist))
- (do ((i 0))
- ((= i size))
- (push initial-element newlist)
- (incf i))
- newlist))
+ (dotimes (i size newlist)
+ (push initial-element newlist))))
(defun map1 (func list)
(with-collect