Skip to content

Should an empty cat/hvcat etc. output an array of the expected dimensions? #40111

Open
@BioTurboNick

Description

@BioTurboNick

Currently, empty cat expressions return empty vectors.

Should they instead return empty arrays of the expected dimensions?

Currently:

typeof(cat(dims = 3)) # Vector{Any}

typeof(cat(1, dims = 3)) # Array{Int, 3}

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions