FSharp-04-Loop
comparison
大于
1 | 10 > 10 |
小于
1 | 9< 12 |
等于
1 | // 数学意义的等于 |
不等于
1 | // 不等于 |
大于等于
1 | 0.9999999 >= 1.0 |
小于等于
1 | 0.9999999 <= 1.0 |
与或非
1 | // True |
for loop
1 | for i in [1..10] do |
1 | let list_1 =[0..10] |
1 |
1 | let list_1 =[0..10] |
mutable
1 | // x 0 |
while loop
1 | let mutable s = 0 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment