79787619

Date: 2025-10-10 18:36:45
Score: 0.5
Natty:
Report link

The equivalent of which.max and which.min is argmax and argmin respectively.

y = [1, 4, 3, 2]
argmax(y)
> 2

https://docs.julialang.org/en/v1/base/collections/#Base.argmax

In earlier versions there were the indmax and indmin functions, but they have been deprecated and removed in the meanwhile. It seems they were removed with Julia 0.7 and 1.0 released in August 2018.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: froemijojo