Skip to content

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

Description

@joehuchette

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions