From c4c24198e51a009dbcb0273b1163244d38b6d835 Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Mon, 2 Sep 2019 10:52:34 +0100 Subject: [PATCH] Add compat annotation --- NEWS.md | 2 +- base/abstractarraymath.jl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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..bb3ec1c98f14a9 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)