Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...)

Expand Down
4 changes: 2 additions & 2 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))))))

Expand All @@ -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)))))

Expand Down