| Overview | Module | Function | Class | Tea 3.2.5 Reference Documentation © 2009 PDM&FC |
while condition body
Executes a block of code repeatedly while a condition evaluates to the true boolean value.
condition evaluates to true.
body block
or the null object if the body was never executed.
while function like this:
define while ( condBlock bodyBlock ) {
if $condBlock {
[lambda () $bodyBlock]
while $condBlock $bodyBlock
}
}
Mind you this would not be particularly efficient, since tail
recursion is not implemented in the current version of the Tea
interpreter.
| Overview | Module | Function | Class | Tea 3.2.5 Reference Documentation © 2009 PDM&FC |