A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
13
Task/Loops-Nested/Racket/loops-nested.rkt
Normal file
13
Task/Loops-Nested/Racket/loops-nested.rkt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#lang racket
|
||||
(define (scan xss)
|
||||
(for* ([xs xss]
|
||||
[x xs]
|
||||
#:final (= x 20))
|
||||
(displayln x)))
|
||||
|
||||
(define matrix
|
||||
(for/list ([x 10])
|
||||
(for/list ([y 10])
|
||||
(+ (random 20) 1))))
|
||||
|
||||
(scan matrix)
|
||||
Loading…
Add table
Add a link
Reference in a new issue