Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Loops-Nested/Scheme/loops-nested-1.ss
Normal file
12
Task/Loops-Nested/Scheme/loops-nested-1.ss
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(call-with-current-continuation
|
||||
(lambda (return)
|
||||
(for-each (lambda (a)
|
||||
(for-each (lambda (b)
|
||||
(cond ((= 20 b)
|
||||
(newline)
|
||||
(return))
|
||||
(else
|
||||
(display " ")(display b))))
|
||||
a)
|
||||
(newline))
|
||||
array)))
|
||||
11
Task/Loops-Nested/Scheme/loops-nested-2.ss
Normal file
11
Task/Loops-Nested/Scheme/loops-nested-2.ss
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(let loop ((a array))
|
||||
(if (pair? a)
|
||||
(let loop2 ((b (car a)))
|
||||
(cond ((null? b)
|
||||
(newline)
|
||||
(loop (cdr a)))
|
||||
((= 20 (car b))
|
||||
(newline))
|
||||
(else
|
||||
(display " ")(display (car b))
|
||||
(loop2 (cdr b)))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue