Currently I've got...
$Count = 192 # some arbitrary constant, or command line argument, or input; > 0
$i = $Count
while (i -= 1) >= 0
# some stuff
end
...In other languages I'd use a counted "for" loop. Is there something more elegant than the above?
On Thursday, December 1, 2016 at 1:58:24 PM UTC-8, brec wrote:
Currently I've got...
$Count = 192 # some arbitrary constant, or command line argument, or input; > 0
$i = $Count
while (i -= 1) >= 0
# some stuff
end
...In other languages I'd use a counted "for" loop. Is there something more elegant than the above?
Kindly ignore the missing "$" in the conditional expression.
Currently I've got...
$Count = 192 # some arbitrary constant, or command line argument, or input; > 0
$i = $Count
while (i -= 1) >= 0
# some stuff
end
...In other languages I'd use a counted "for"
loop. Is there something more elegant than the above?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:15:49 |
Calls: | 9,709 |
Calls today: | 4 |
Files: | 13,740 |
Messages: | 6,180,940 |