Fixed / Infinite Iteration

  • Iteration: dotimes
(dotimes (i 3)
    (print i))

(loop repeat 3
    do (print "hello"))

(loop repeat 3
    collect (random 10))
  • Infinite iteration:
(loop "infnite!")

Making a REPL in lisp:

(loop (print (eval (read))))