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

Unexpected behavior for [1,2,3;] #8615

Closed
joehuchette opened this issue Oct 8, 2014 · 1 comment
Closed

Unexpected behavior for [1,2,3;] #8615

joehuchette opened this issue Oct 8, 2014 · 1 comment

Comments

@joehuchette
Copy link
Member

On beb5486:

julia> [1,2,3;]
3-element Array{Int64,1}:
 2
 1
 3

julia> [1,2,3,4;]
4-element Array{Int64,1}:
 3
 2
 1
 4

julia> [1,2;]
2-element Array{Int64,1}:
 1
 2

This syntax is not supported on v0.3 (probably because of #8250). I would expect this to behave the same as, e.g. [1,2,3], but maybe that's naive. I definitely wasn't expecting this, though.

@JeffBezanson
Copy link
Member

That is really weird.

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