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: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 158:36:57 |
| Calls: | 12,094 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,756 |