Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Can't destructure tuples in comprehension #772

Closed
pao opened this Issue · 0 comments

2 participants

@pao
Collaborator

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
@JeffBezanson JeffBezanson closed this issue from a commit
@JeffBezanson JeffBezanson fix #772 e114d0d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.