2017-06-20 16:22:04 +02:00
|
|
|
# Decrement variable passed by name
|
2017-05-25 13:52:41 +02:00
|
|
|
set decr {
|
2017-05-26 19:44:03 +02:00
|
|
|
set @1 (- @@1 1)
|
2017-05-25 13:52:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
set limit 2
|
2017-05-26 19:44:03 +02:00
|
|
|
for (map { .. @1 ! } [
|
2017-05-21 00:23:51 +02:00
|
|
|
world
|
|
|
|
creator
|
2017-05-25 13:52:41 +02:00
|
|
|
'darkness, my old friend'
|
2017-05-21 00:23:51 +02:00
|
|
|
]) {
|
2017-05-26 19:44:03 +02:00
|
|
|
{ print 'hello ' @1 '\n' } @1
|
2017-05-25 13:52:41 +02:00
|
|
|
if (= 0 (decr limit)) { break }
|
2017-05-21 00:23:51 +02:00
|
|
|
}
|