FSharp
From ScienceZero
Revision as of 06:19, 23 August 2013 by Bjoern (Talk | contribs) (Created page with "==Loops== Try to avoid loops when it is simple to do so because loops require change of tate to terminate and change of state is an opportunity for bugs. while(true) do pr...")
Loops
Try to avoid loops when it is simple to do so because loops require change of tate to terminate and change of state is an opportunity for bugs.
while(true) do printfn "Hello World"
for i = 1 to 10 do printfn "%A" i
let arr = ["One";"Two";"Three"] for t in arr do printfn "%A" t