CL-USER> [x (x <- '(1 2 3)) (oddp x)]CL-USER> (loop for x in (list 1 2 3) when (oddp x) collect x)
(1 3)
(1 3)
LOOP does some kind of list comprehension aswell, without an additional
software.
Scheme:
(filter odd? '(3 4 5))
(3 5)
Does using CL cripple the brain, or does having a crippled brain
cause one to use CL?
If Lisp is to live, CL must die.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (3 / 13) |
Uptime: | 30:33:02 |
Calls: | 10,391 |
Calls today: | 2 |
Files: | 14,064 |
Messages: | 6,417,097 |