JuliaLang:master ← JuliaLang:kc/min_max_array_errorhint
opened 03:07PM - 03 Jan 24 UTC
Inspired by the discussion in https://discourse.julialang.org/t/max-of-a-vector/… 108294/15
```julia
julia> max([1,2,3])
ERROR: MethodError: no method matching max(::Vector{Int64})
Finding the minimum or maximum element of an array is performed with `minimum` and `maximum` respectively.
....
julia> max([1,2,3])
ERROR: MethodError: no method matching max(::Vector{Int64})
Finding the minimum or maximum element of an array is performed with `minimum` and `maximum` respectively.
....
```
julia> max(a)
ERROR: MethodError: no method matching max(::Vector{Int64})
Finding the minimum or maximum element of an array is performed with `minimum` and `maximum` respectively.