(defun collect-blobs (methods)
(let ((complete-runs nil)
(current-run nil))
(flet ((complete-run ()
(when current-run
(push (nreverse current-run) complete-runs)
(setf current-run nil))))
(loop for method in methods do
(when (betap method) (complete-run))
(push method current-run))
(complete-run))
complete-runs))
I like this version, and it indeed does what it should. Now I also agree
that it is better understandable than the recursive version. May I use
that code when I decide to make the original code publicly available?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 55:46:27 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,709 |