Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/Loops-Nested/ReScript/loops-nested.re
Normal file
20
Task/Loops-Nested/ReScript/loops-nested.re
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
let m = []
|
||||
|
||||
for _ in 0 to 9 {
|
||||
let n = []
|
||||
for _ in 0 to 9 {
|
||||
let _ = Js.Array2.push(n, 1 + Js.Math.random_int(0, 20))
|
||||
}
|
||||
let _ = Js.Array2.push(m, n)
|
||||
}
|
||||
|
||||
try {
|
||||
for i in 0 to 9 {
|
||||
for j in 0 to 9 {
|
||||
Js.log(m[i][j])
|
||||
if m[i][j] == 20 { raise(Exit) }
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
| Exit => Js.log("stop")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue