I have the following code:
(let (liste (loop for item from 1 to 20 collect item))
(format t "~{~a~}~" liste))
However portacle complains: The variable FOR is unbound. Why?
I have the following code:
(let (liste (loop for item from 1 to 20 collect item))
(format t "~{~a~}~" liste))
However portacle complains: The variable FOR is unbound. Why?
Given your code, CLISP complains:
So the problem is with
LET, not withLOOP.You are missing an additional pair of parentheses:
This will give you a different error message, concerning the format directive.