E3017 Type Errors

not-iterable

value is not iterable

When this occurs

for_each on non-iterable

Example error message

error[E3017]: for_each requires array or string, got INTEGER

How to fix

Only arrays, strings, maps, and ranges can be used in `for_each` loops.

Related errors