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

Tuple splatting inside parenthesis #6701

Closed
IainNZ opened this issue Apr 30, 2014 · 1 comment
Closed

Tuple splatting inside parenthesis #6701

IainNZ opened this issue Apr 30, 2014 · 1 comment

Comments

@IainNZ
Copy link
Member

IainNZ commented Apr 30, 2014

I'm putting this as an issue because I'm not sure its desired behaviour.

julia> x=(5,2)
(5,2)

julia> y=(x...,3)
((5,2)...,3)   # Not what I expected!

julia> y=tuple(x...,3)
(5,2,3)  # What I wanted

julia> dump( (x...,3) )
(DataType,Int64) ((5,2)...,3)   # U wot m8

Why is the splatted x turning into a datatype?

@JeffBezanson
Copy link
Member

dup of #4869

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