diff --git a/NEWS.md b/NEWS.md index 97ceb39b5a93f..5b9d2ba362117 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 c8ad5a376025a..bb3ec1c98f14a 100644 --- a/base/abstractarraymath.jl +++ b/base/abstractarraymath.jl @@ -111,6 +111,9 @@ julia> dropdims(sum, abs2, a, dims=2) 57.0 94.0 ``` + +!!! compat "Julia 1.4" + This function requires at least Julia 1.4. """ dropdims(f, args...; dims, kwargs...) = _dropdims(f(args...; kwargs..., dims=dims), dims)