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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 inIt uses similar to the curried interface of theiteriloop:loop
while:An infinite loop with a loop variable, which is implemented by omitting the
whileclause 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