Julia: Difference between revisions

39 bytes added ,  26 September 2019
Line 129: Line 129:
myArr = Array{Float64,1}(undef, 3)
myArr = Array{Float64,1}(undef, 3)


// Convert an iterable to an array with collect
// Convert a collection to an array with collect
myArr = collect(1:3)
myArr = collect(1:0.5:3)
// myArr == [1.0,1.5,2.0,2.5,3.0]


// Reference copy
// Reference copy