Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Loops-Continue/F-Sharp/loops-continue-1.fs
Normal file
6
Task/Loops-Continue/F-Sharp/loops-continue-1.fs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
for i in 1 .. 10 do
|
||||
printf "%d" i
|
||||
if i % 5 = 0 then
|
||||
printf "\n"
|
||||
else
|
||||
printf ", "
|
||||
5
Task/Loops-Continue/F-Sharp/loops-continue-2.fs
Normal file
5
Task/Loops-Continue/F-Sharp/loops-continue-2.fs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
let fN g=quibble (Seq.initInfinite(fun n ->if (n+1)%5=0 || (n+1)=List.length g then "\n" else ", ")) g
|
||||
fN [1] |> Seq.iter(fun(n,g)->printf "%d%s" n g)
|
||||
fN [1..9] |> Seq.iter(fun(n,g)->printf "%d%s" n g)
|
||||
fN [1..10] |> Seq.iter(fun(n,g)->printf "%d%s" n g)
|
||||
fN [1..11] |> Seq.iter(fun(n,g)->printf "%d%s" n g)
|
||||
Loading…
Add table
Add a link
Reference in a new issue