(loop
for element in sequence
collect (do-something-to element)
until (> element 5))
This performs some action on each element (do-something-to) and
collects the results in a list (the return value of loop). If it runs
into an element that is greater than 5, it will terminate early and
return whatever it collected so far.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 343 |
Nodes: | 16 (2 / 14) |
Uptime: | 28:57:49 |
Calls: | 7,556 |
Calls today: | 3 |
Files: | 12,733 |
Messages: | 5,655,449 |
Posted today: | 1 |