diff --git a/base/abstractarray.jl b/base/abstractarray.jl index 589d460e9a3f7..8ba42f2d2e146 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -1744,6 +1744,9 @@ function hvcat(nbc::Integer, as...) hvcat(ntuple(i->nbc, nbr), as...) end +hvcat(::Val{rows}, values...) where {rows} = hvcat(rows, values...) +typed_hvcat(T, ::Val{rows}, values...) where {rows} = typed_hvcat(T, rows, values...) + """ hvcat(rows::Tuple{Vararg{Int}}, values...) diff --git a/src/julia-syntax.scm b/src/julia-syntax.scm index 2f02c09acedac..bf1983c985719 100644 --- a/src/julia-syntax.scm +++ b/src/julia-syntax.scm @@ -2339,7 +2339,7 @@ (list x))) a))) `(call (top hvcat) - (tuple ,.(map length rows)) + (call (curly (top Val) (tuple ,.(map length rows)))) ,.(apply append rows))) `(call (top vcat) ,@a)))))) @@ -2366,7 +2366,7 @@ (list x))) a))) `(call (top typed_hvcat) ,t - (tuple ,.(map length rows)) + (call (curly (top Val) (tuple ,.(map length rows)))) ,.(apply append rows))) `(call (top typed_vcat) ,t ,@a)))))