Replies: 1 comment 1 reply
-
System.Linq or F# stanard library provides this function |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If we redesign the f # language in the future, the loop statement should contain a loop variable, which is an integer, starting from 0, with a step size of 1. The semantics of the loop variable is to indicate the times of loops.
Only two loops are reserved, first is
for in
, another iswhile
.for in
It uses similar to the curried interface of theiteri
loop:loop
while
:An infinite loop with a loop variable, which is implemented by omitting the
while
clause of the while loop.They can still simplify the compatibility of corresponding statements without loop variables.
loop
while
:Beta Was this translation helpful? Give feedback.
All reactions