Skip to content

Commit

Permalink
added with-appender-output
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbysmith007 committed Dec 14, 2011
1 parent 024263a commit ff44a21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions collectors.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#:with-reducer
#:make-reducer
#:with-appender
#:with-appender-output
#:make-appender
#:with-string-builder
#:with-string-builder-output
Expand Down Expand Up @@ -199,6 +200,12 @@ current list of values."
(apply ,appender items)))
,@body))))

(defmacro with-appender-output ((name &optional initial-value) &body body)
"Same as with-appender, but this form returns the collected values
automatically
"
`(with-appender (,name ,initial-value) ,@body (,name)))

(defmacro with-collector ((name &key
(collect-nil T)
initial-value from-end) &body body)
Expand Down

0 comments on commit ff44a21

Please sign in to comment.