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: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 32:59:37 |
Calls: | 6,908 |
Calls today: | 2 |
Files: | 12,376 |
Messages: | 5,428,096 |
Posted today: | 2 |