How can I find the type of a variable?
November 10th, 2015 by ryan
To find the type of a variable use the typeof function:
julia> a = 1
1
julia> b = [100,200,300]
3-element Array{Int64,1}:
100
200
300
julia> c = 1:10
1:10
julia> typeof(a)
Int64
julia> typeof(b)
Array{Int64,1}
julia> typeof(c)
UnitRange{Int64}