Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Loops-Nested/F-Sharp/loops-nested.fs
Normal file
5
Task/Loops-Nested/F-Sharp/loops-nested.fs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//Nigel Galloway: November 10th., 2017
|
||||
let n = System.Random()
|
||||
let g = Array2D.init 8 8 (fun _ _ -> 1+n.Next()%20)
|
||||
Array2D.iter (fun n -> printf "%d " n) g; printfn ""
|
||||
g |> Seq.cast<int> |> Seq.takeWhile(fun n->n<20) |> Seq.iter (fun n -> printf "%d " n)
|
||||
Loading…
Add table
Add a link
Reference in a new issue