RosettaCodeData/Task/Loops-For-with-a-specified-step/Scheme/loops-for-with-a-specified-step-2.ss
2016-12-05 22:15:40 +01:00

5 lines
217 B
Scheme

(let loop ((i 2)) ; function name, parameters and starting values
(cond ((< i 9)
(display i)
(newline)
(loop (+ i 2)))))) ; tail-recursive call, won't create a new stack frame