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

Unroll with zip #3

Open
Tracked by #11
ahwillia opened this issue Jun 11, 2016 · 1 comment
Open
Tracked by #11

Unroll with zip #3

ahwillia opened this issue Jun 11, 2016 · 1 comment

Comments

@ahwillia
Copy link

How difficult would it be to add support for the following? I think this would be useful:

x = rand(10)
y = rand(10)
for (xi,yi) in zip(x,y)
    # do something
    xi+yi
end
@putianyi889 putianyi889 mentioned this issue Feb 22, 2024
4 tasks
@putianyi889
Copy link
Collaborator

It could first expand to

@unroll for x in zip(x,y)
    # do something
    x[1]+x[2]
end

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

2 participants