T
Tom Agnew
Greetings,
I just discovered undocumented but very useful syntax:
break <expression>
The expression seems to add a useful feature to a 'while', 'until' or
'for' control structure. For example:
result = while <condition>
...
break <something>
...
end
'result' is nil if the loop exits with <condition> and is <something> if
the break is executed.
Very useful and provides an cool addition to an already elegant
collection of iterator constructs!
Tom Agnew3
I just discovered undocumented but very useful syntax:
break <expression>
The expression seems to add a useful feature to a 'while', 'until' or
'for' control structure. For example:
result = while <condition>
...
break <something>
...
end
'result' is nil if the loop exits with <condition> and is <something> if
the break is executed.
Very useful and provides an cool addition to an already elegant
collection of iterator constructs!
Tom Agnew3