Julia , . , , ndims, - . , ndims, @which , :
julia> @which ndims(AbstractArray{Float64, 2})
ndims{T,n}(::Type{AbstractArray{T,n}}) at abstractarray.jl:61
julia> @which ndims([1.1 0.3; 0. 0.5])
ndims{T,n}(::AbstractArray{T,n}) at abstractarray.jl:60
abstractarray.jl :
ndims{T,n}(::AbstractArray{T,n}) = n
ndims{T,n}(::Type{AbstractArray{T,n}}) = n
{T,n}.
AbstractArray{T,n} - , [1.1 0.3; 0. 0.5] ( ).AbstractArray{T,n}.
( , , , , , )
types methods Julia.