Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 43:37:45 |
Calls: | 422 |
Calls today: | 1 |
Files: | 1,024 |
Messages: | 90,185 |
For those who are interested, here are two versions of the
`every-other' function we were discussing a couple months ago, done
for amusement value with the SERIES package that was mentioned
recently:
(defun every-other (list &key (start 0))
(collect
(choose (series t nil)
(scan (nthcdr start list)))))
This one uses SERIES to create a series of (t nil t nil ...); CHOOSE
uses this series to determine whether or not to take the current item
from the series created from the original list by SCAN. This was the