3 ms·
Most platforms make some kind of loop into a primitive, but in Common Lisp (dotimes (i 10) (print i)) is just a predefined macro that might expand into
by erik_seaberg 3y ago
Most platforms make some kind of loop into a primitive, but in Common Lisp
(dotimes (i 10)
(print i))
is just a predefined macro that might expand into primitives like
(BLOCK NIL
(LET ((I 0))
(TAGBODY
#:LOOP-2867
(IF (>= I 10)
(GO #:END-2868))
(PRINT I)
(PSETQ I (1+ I))
(GO #:LOOP-2867)
#:END-2868
(RETURN-FROM NIL (PROGN NIL)))))