projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5117e
)
Use do-sequence
author
David Vázquez
<davazp@gmail.com>
Thu, 9 May 2013 08:00:46 +0000
(09:00 +0100)
committer
David Vázquez
<davazp@gmail.com>
Thu, 9 May 2013 08:00:46 +0000
(09:00 +0100)
src/sequence.lisp
patch
|
blob
|
history
diff --git
a/src/sequence.lisp
b/src/sequence.lisp
index
738995f
..
4b5a759
100644
(file)
--- a/
src/sequence.lisp
+++ b/
src/sequence.lisp
@@
-114,9
+114,8
@@
(defun vector-remove-if (func vector negate)
(let ((out-vector (make-array 0)))
- (dotimes (i (length vector))
- (let* ((element (aref vector i))
- (test (funcall func element)))
+ (do-sequence (element vector i)
+ (let ((test (funcall func element)))
(when (if negate test (not test))
(vector-push-extend element out-vector))))
out-vector))