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

Already on GitHub? Sign in to your account

Can't destructure tuples in comprehension #772

Closed
pao opened this Issue Apr 28, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Member

pao commented Apr 28, 2012

I expected something similar to this to work by analogy with the for loop:

julia> [a | (a,) in enumerate(2:4)]
syntax error: invalid syntax in local declaration

It doesn't. Note that the above is just a quick way to get an iterable of tuples, not the actual code where I encountered this. I'll index in the expression for now, but this should probably work.

@JeffBezanson JeffBezanson was assigned Apr 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment