E3123 Iteration Errors

Iteration

for_each with both positions discarded accesses nothing; use 'for _ in range(0, len(collection))' to iterate by count

When this occurs

This error is triggered when: for_each with both positions discarded accesses nothing; use 'for _ in range(0, len(collection))' to iterate by count

Example error message

error[E3123]: for_each with both positions discarded accesses nothing; use 'for _ in range(0, len(collection))' to iterate by count

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.