What is the Julia function corresponding to the Grid function in Mathematica
not everything in Julia is “expression” (as in Mathematica) but maybe you’re just looking for concatenation?
julia> hcat([1,2,3],[4,5,6])
3×2 Matrix{Int64}:
1 4
2 5
3 6
julia> hcat([1,2,3],'x':'z')
3×2 Matrix{Any}:
1 'x'
2 'y'
3 'z'
notice Julia is column-major, so when you type [1,2,3]
it means a column.
I would’t even use hcat
in the answer, just use the ;
and whitespace to arrange things into an array:
julia> [1 2 3
4 5 6]
2×3 Matrix{Int64}:
1 2 3
4 5 6
julia> [1 2 3; 4 5 6]
2×3 Matrix{Int64}:
1 2 3
4 5 6
I think it can be a feature in Makie!