LESSON 13: Loop structures on Dinamica EGO

Dinamica EGO has several looping structures that can be used for various applications.
Loops are handy, if you want to run the same code over and over again, each time with a different value. Loops can execute a block of code a number of times.

What will you learn?

Different Kinds of Loops on Dinamica EGO and how to work with Repetition structures.

Container operators that repeat the functions within them:

Repeat: This container makes a set of functors, linked in a dataflow chain, iterate a number of times
For: This container makes a set of functors, linked in a dataflow chain, iterate a number of times.
For each: This container executes the contained functors once per each element of a given lookup table.
For each category:This container executes the contained functors once per each class or category of a categorical map specified as input.
For each region:This container creates and manages regions identified by a categorical map, whose classes represent regions. It manages both the processes of splitting a map into several maps, each one comprising a region, and the subsequent merging of all regional maps in a mosaic, that is a new map. The container also calls the functors inside it to each region.

Auxiliary operators to control iterations: