demo/kitchen-sink/docs/fsharp.fsi
raw| 1 | (* fsharp (* example *) *) |
| 2 | module Test = |
| 3 | let (*) x y = (x + y) |
| 4 | let func1 x = |
| 5 | if x < 100 then |
| 6 | x*x |
| 7 | else |
| 8 | x*x + 1 |
| 9 | let list = (-1, 42) :: [ for i in 0 .. 99 -> (i, func1(i)) ] |
| 10 | let verbatim = @"c:\Program "" Files\" |
| 11 | let trippleQuote = """ "hello world" """ |
| 12 | |
| 13 | |
| 14 | printfn "The table of squares from 0 to 99 is:\n%A" list |