Programming-Idioms

History of Idiom 2 > diff from v68 to v69

Edit summary for version 69 :
[Lisp] does not need a counter

Version 68

2019-09-26, 15:05:06

Version 69

2019-09-26, 15:10:08

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration
Code
(dotimes (x 10)
	(write-line "Hello"))
Code
(loop repeat 10 do (write-line "Hello"))