Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Repeat/Ol/repeat.ol
Normal file
16
Task/Repeat/Ol/repeat.ol
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
; sample function
|
||||
(define (function) (display "+"))
|
||||
|
||||
; simple case for 80 times
|
||||
(for-each (lambda (unused) (function)) (iota 80))
|
||||
(print) ; print newline
|
||||
; ==> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
; detailed case for 80 times
|
||||
(let loop ((fnc function) (n 80))
|
||||
(unless (zero? n)
|
||||
(begin
|
||||
(fnc)
|
||||
(loop fnc (- n 1)))))
|
||||
(print) ; print newline
|
||||
; ==> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Loading…
Add table
Add a link
Reference in a new issue