Hi, I am trying to migrate from R to julia. I am trying to wrap my head around: In R, there are the apply functions - when used with, e.g. a function that returns a 1d array of constant length, they will return a 2d array with the results. In julia, using map() will return a Array{Array{T, 1}, 1} . What is the best, ideomatic way of building an Array{T, 2} from repeated runs of a function? A hcat() call at the end of a forloop? Initializing an array with the right dimensions with zeros(T, r, c) an indexing inside a for loop? Or is there something smarter/nicer/better?
Thanks, Michael