On Wednesday, March 11, 2015 at 4:49:06 PM UTC-7, Diego Tapias wrote: > > Quick question: what does this mean > > julia> Array(Int,1) > 1-element Array{Int64,1}: > 139838919411184 > > ? > > And another question: > > Is this just used for initializing an array? >
Typically you would use something like: my_array = Array(Int,1) This preallocates space for your array and gives it a type. (it's an array with only one entry) The array isn't initialized at that point, the space is just allocated, that's why you see: 139838919411184 in your single entry array. If you wanted to initialize it, you could do: my_array = zeros(Int,1) > >