Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enumerate() doesn't work on frozen lists #2945

Open
Tatskaari opened this issue Nov 6, 2023 · 0 comments
Open

enumerate() doesn't work on frozen lists #2945

Tatskaari opened this issue Nov 6, 2023 · 0 comments

Comments

@Tatskaari
Copy link
Member

If you try and use built ins like enumerate on lists that get froze (e.g. because they come in scope from a subinclude), then you get a confusing error message like:

error: Argument to enumerate must be a list, not list

A workaround is to do enumerate([] + list)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant