Is there any difference in the behavior of collect(x) vs Array(x)?
collect(element_type, collection)
Return an Array with the given element type of all items in a collection or iterable. The result has the same shape and number of dimensions
as collection.
julia> collect(1:5)
5-element Vector{Int64}:
1
2
3
4
5
julia> Array(1:5)
5-element Vector{Int64}:
1
2
3
4
5