Fix Map, Enumerate and Zip in comprehension list #1412
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modify line 194 {(if rank == 0)...} to not assert error if shape == (), to consider it as None because of a runtime error.
Fix Enumerate zip map in comprehension list using Iterate class used in normal for loops.
Work with nested variable in indices variable to prevent conflict with tuple variables and variables used in nested loops.
To fix this conflict I changed indices to a nested list.
expr.indices = [(a,b), c] => indices = [[a,b], c]].
But the problem is an error gets raised at the returning of the codeblock in FunctionalFor
"Basic child cannot be a tuple of tuples"
So at the end of FunctionalFor I changed the nested list indices variable to a normal list variable.