LOOP is powerful, general, and standard. E.g.
CL-USER 5 > (loop as i below 5 collect i collect (* i 2))
(0 0 1 2 2 4 3 6 4 8)
Software Scavenger wrote:
LOOP is powerful, general, and standard. E.g.
CL-USER 5 > (loop as i below 5 collect i collect (* i 2))
(0 0 1 2 2 4 3 6 4 8)
Gauche Scheme
(use srfi-42) ; append-ec
(append-ec (: i 5) (list i (* i 2)))
(0 0 1 2 2 4 3 6 4 8)
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 54:39:43 |
| Calls: | 1,101 |
| Calls today: | 1 |
| Files: | 1,339 |
| Messages: | 276,321 |