From dbf9ed6e45dc8d8ef6da662278f1eba4bc4282b6 Mon Sep 17 00:00:00 2001 From: "Michael K. Borregaard" Date: Thu, 25 May 2017 12:05:21 +0200 Subject: [PATCH] variable arg numbers for Base methods --- src/Plots.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plots.jl b/src/Plots.jl index 319a64a2..0f49b301 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -109,7 +109,7 @@ export import NaNMath # define functions (e.g. `_extrema`, that uses the NaNMath version (which ignores NaNs)) when the type is applicable for fun in (:extrema, :minimum, :maximum, :mean) - @eval $(Symbol(string("_",fun)))(x) = Base.$(fun)(x) + @eval $(Symbol(string("_",fun)))(x...) = Base.$(fun)(x...) @eval $(Symbol(string("_",fun))){F <: AbstractFloat}(x::AbstractVector{F}) = NaNMath.$(fun)(x) end