A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
6
Task/Loops-Break/Scheme/loops-break-1.ss
Normal file
6
Task/Loops-Break/Scheme/loops-break-1.ss
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(let loop ((first (random 20)))
|
||||
(print first)
|
||||
(if (not (= first 10))
|
||||
(begin
|
||||
(print (random 20))
|
||||
(loop (random 20)))))
|
||||
8
Task/Loops-Break/Scheme/loops-break-2.ss
Normal file
8
Task/Loops-Break/Scheme/loops-break-2.ss
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(call/cc
|
||||
(lambda (break)
|
||||
(let loop ((first (random 20)))
|
||||
(print first)
|
||||
(if (= first 10)
|
||||
(break))
|
||||
(print (random 20))
|
||||
(loop (random 20)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue