Details
-
Sub-task
-
Resolution: Fixed
-
Not Evaluated
-
None
-
-
1610bb8ff (master), a50bc70b8 (master), 52e0863bd (master), 3f1a381c5 (master), ff46a9a8e (master), bc2faebe0 (master)
Description
When designing the Loop functionality, take the following requirements into account:
- Iteration index (part of Iterator)
- Index of int or qint64 value, possibly optional, as it may not be relevant for Foreach with an infinite number of iterations
- Forever
- Like while(true)
- Until (dynamic condition)
- Like while(condition())
- Simple repeater with static number of iterations
- e.g. Repeat(5)
- The repeater with dynamic number of iterations
- The exact number must be set in iterator's init handler, i.e. when init is called, the condition handler is returned
- General Loop element, taking an iterator with init and condition handlers (would increment handler be also needed?)
- Placed in Group as GroupItem
- Support iterators with unknown number of iterations, like Utils::FileContainer with Utils::FileContainerIterator