please icon indicating copy to clipboard operation
please copied to clipboard

enumerate() doesn't work on frozen lists

Open Tatskaari opened this issue 2 years ago • 1 comments

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)

Tatskaari avatar Nov 06 '23 12:11 Tatskaari

This issue has been automatically marked as stale because it has not had any recent activity in the past 90 days. It will be closed if no further activity occurs. If you require additional support, please reply to this message. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 01:04 stale[bot]