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

Make arrays iterable #617

Closed
mark-koch opened this issue Nov 4, 2024 · 0 comments · Fixed by #632
Closed

Make arrays iterable #617

mark-koch opened this issue Nov 4, 2024 · 0 comments · Fixed by #632
Assignees

Comments

@mark-koch
Copy link
Collaborator

No description provided.

@mark-koch mark-koch self-assigned this Nov 4, 2024
github-merge-queue bot pushed a commit that referenced this issue Dec 2, 2024
* Add `ArrayIter` type to the standard library
* Add `array.__iter__` method

Drive by: Fix array method compilers to handle generic array lengths

Note: The `ArrayIter.__end__` method depends on a new `array_map` Hugr
op that doesn't exist yet to discard linear arrays

Closes #617

---------

Co-authored-by: Alan Lawrence <alan.lawrence@cambridgequantum.com>
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

Successfully merging a pull request may close this issue.

1 participant