Initialize counter variable in Common Lisp - Stack Overflow

PHOTO EMBED

Wed Oct 20 2021 21:04:55 GMT+0000 (Coordinated Universal Time)

Saved by @Adam101 #lisp

CL-USER 9 > (defun x (c)
              (let ((i 4))     ; defining/binding local variable i
                (loop while (< i 10) do
                      (print i)
                      (incf i))))
X

CL-USER 10 > (x :foobar)

4 
5 
6 
7 
8 
9 
NIL
content_copyCOPY

https://stackoverflow.com/questions/49461861/initialize-counter-variable-in-common-lisp