Easy way to merge a vector into a matrix

Oh, I should also mention, this is equivalent to hcat:

julia> let data = rand(4, 3)
           vcat(ones(4)', data')' == hcat(ones(4), data)
       end
true
2 Likes