The Recursive Loop

OTScript language provides a quick recursive loop feature that is an extension of the "for each" syntax.

This page discusses:

See Also
Basics

Syntax



Use

The instruction generates a list starting with the results from the left expression. The results from the right expression applied to the previous results (recursively) while they are not already processed.

Note: The recursion never stops if the right expression returns always new objects.

Example

TMP allChildNodes := THIS.*(`dc:hasPart`.`syctype:Traceability.Node`);