Loops/Increment loop index within loop body: Difference between revisions

m
No edit summary
Line 1,976:
=={{header|Haskell}}==
No index mutations or loops. Recursion is used.
<lang haskellHaskell>
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.
Anonymous user