We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58fba2b commit 454fc51Copy full SHA for 454fc51
base/range.jl
@@ -705,7 +705,7 @@ function argmin(r::AbstractRange)
705
elseif step(r) > 0
706
firstindex(r)
707
else
708
- first(searchsorted(r, last(r)))
+ lastindex(r)
709
end
710
711
@@ -720,7 +720,7 @@ function argmax(r::AbstractRange)
720
if isempty(r)
721
throw(ArgumentError("range must be non-empty"))
722
723
724
725
726
0 commit comments