Array{T,N}(n...) should work for any N #18459
Labels
arrays
[a, r, r, a, y, s]
good first issue
Indicates a good issue for first-time contributors to Julia
Hacktoberfest
Good for Hacktoberfest participants
Right now, you can do
Array{T,1}(n)
andArray{T,2}(n1, n2)
but notArray{T,3}(n1, n2, n3)
(althoughArray{T}(n1, n2, n3)
andArray{T,3}((n1, n2, n3))
both work). This is inconsistent and potentially surprising. It should be possible to make all constructors of this form work using bound varargs.The text was updated successfully, but these errors were encountered: