diff --git a/NEWS.md b/NEWS.md index 97ceb39b5a93fa..5b9d2ba362117d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -31,7 +31,7 @@ Standard library changes * The methods of `mktemp` and `mktempdir` which take a function body to pass temporary paths to no longer throw errors if the path is already deleted when the function body returns ([#33091]). -* A new `dropdims(f, args...; dims, kwargs...)` method computes the reduction `f` over the region described by `dims` and then drops those dimensions from the result ([#23500]). +* A new `dropdims(f, args...; dims, kwargs...)` method computes the reduction `f` over the region described by `dims` and then drops those dimensions from the result ([#33130]). #### Libdl diff --git a/base/abstractarraymath.jl b/base/abstractarraymath.jl index c8ad5a376025a1..2a18d356c06f4b 100644 --- a/base/abstractarraymath.jl +++ b/base/abstractarraymath.jl @@ -92,6 +92,9 @@ _dropdims(A::AbstractArray, dim::Integer) = _dropdims(A, (Int(dim),)) Compute reduction `f` over dimensions `dims` and drop those dimensions from the result. +!!! compat "Julia 1.4" + This function requires at least Julia 1.4. + # Examples ```jldoctest julia> a = [3.0 2.0 6.0 8.0