[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
For SCHEME hackers and interested parties only
- To: (BUG LISP) at MIT-MC
- Subject: For SCHEME hackers and interested parties only
- From: REM at MIT-MC (Robert Elton Maas)
- Date: Tue, 18 Dec 79 20:42:00 GMT
- Original-date: 18 DEC 1979 1542-EST
JONL suggested I pass this idea along.
There are two ways to conditionally build a list (and return it).
(1) MAPCAN (2) DO loop with conditional PUSH, with NREVERSE at return.
We believe that MAPCAN is cleaner, because SCHEME et al could more easily
co-routine it and thus avoid building structure if the only use of the list
(by the calling procedure) will be to map down it once and throw it away.
For example, LIBDOC;ARYFIL > is done the "wrong" way.