We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d73ac commit caabd83Copy full SHA for caabd83
base/abstractarray.jl
@@ -21,7 +21,7 @@ isfloat64{T<:Float32,n}(x::AbstractArray{T,n}) = true
21
ndims{T,n}(::AbstractArray{T,n}) = n
22
ndims{T,n}(::Type{AbstractArray{T,n}}) = n
23
ndims{T<:AbstractArray}(::Type{T}) = ndims(super(T))
24
-length(t::AbstractArray) = prod(size(t))
+length(t::AbstractArray) = prod(size(t))::Int
25
endof(a::AbstractArray) = length(a)
26
first(a::AbstractArray) = a[1]
27
last(a::AbstractArray) = a[end]
0 commit comments