# Max of a vector

**URL:** <https://discourse.julialang.org/t/max-of-a-vector/108294>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [January 3, 2024, 11:02am UTC](https://discourse.julialang.org/t/max-of-a-vector/108294 "2024-01-03T11:02:10Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 3, 2024, 3:07pm UTC](https://discourse.julialang.org/t/max-of-a-vector/108294/16 "2024-01-03T15:07:27Z")

</div>

> <https://github.com/JuliaLang/julia/pull/52716>
>
> 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
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.

```

---

_[View the full topic](https://discourse.julialang.org/t/max-of-a-vector/108294)._
