Loops/Increment loop index within loop body: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) (Added 11l) |
m (Added a general comment as requested by task.) |
||
Line 3,088: | Line 3,088: | ||
=={{header|Nim}}== |
=={{header|Nim}}== |
||
In Nim, loop index is read-only, so we have to use a normal variable and increment it as needed. |
|||
<lang nim> |
<lang nim> |
||
import strformat |
import strformat |