-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]collectionsData structures holding multiple items, e.g. setsData structures holding multiple items, e.g. sets
Description
julia> stack(Vector{Int}[[], [], []]; dims=1)
3×0 Matrix{Int64}
julia> stack(Vector{Int}[[], []]; dims=1)
2×0 Matrix{Int64}
julia> stack(Vector{Int}[[]]; dims=1)
1×0 Matrix{Int64}
julia> stack(Vector{Int}[]; dims=1)
ERROR: LoadError: ArgumentError: `stack` on an empty collection is not allowed
Following the pattern it seems like that last one can be a 0x0 Matrix{Int64}
. Supporting the empty case can be helpful for generic programming.
cc @mcabbott @LilithHafner for stack
-related work.
Metadata
Metadata
Assignees
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]collectionsData structures holding multiple items, e.g. setsData structures holding multiple items, e.g. sets