Anonymous user
Loops/Increment loop index within loop body: Difference between revisions
Loops/Increment loop index within loop body (view source)
Revision as of 20:16, 29 March 2020
, 4 years ago→{{header|Haskell}}
No edit summary |
|||
Line 1,976:
=={{header|Haskell}}==
No index mutations or loops. Recursion is used.
<lang
import Data.List
Line 2,053:
42 99,504,28,301,131
</pre>
=={{header|Haxe}}==
Haxe's for-loop does allow the index to be modified in the body of the loop, so a while-loop is used instead.
|