Can hold objects of different types.
NOTE:
display
instead of println
.display(<array/matrix>)
emty_arr = []
push!(empty_arr, 1)
push!(empty_arr, "hello") #possible because of type "ANY"
append!(arr, arr2)
arr[1] = 67
# FOR MULTI-DIMENSIONAL
arr[r,c] # YES, r,c, though IN memory, its column majors!!!!!!
<var name> = Array{<Type>}(undef, <lowest dimension>)
x = Array{Int64}(undef, 1) #creates a 1 dimension, 1 element Int64 array
NOTE::
undef
is undefined is shortcut to undefInitializer()
which creates array whoes memory has NOT been allocated yet.AbstractFloat
.INT
to float for a float type array.Real
type can contain both Float
AND INT
.Numbers`` type can take everything in
RealAnd
Complex```.Use the bottom ones and the edit these. Its faster
zeros(2,2)
ones(2,2)