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 32d7f93 commit 3e7b09cCopy full SHA for 3e7b09c
base/reduce.jl
@@ -682,8 +682,8 @@ than or equal to any other element) that will be returned for empty collections.
682
julia> minimum(length, ["Julion", "Julia", "Jule"])
683
4
684
685
-julia> minimum(length, []; init=-1)
686
--1
+julia> minimum(length, []; init=Inf)
+Inf
687
```
688
"""
689
minimum(f, a; kw...) = mapreduce(f, min, a; kw...)
@@ -742,8 +742,8 @@ ERROR: ArgumentError: reducing over an empty collection is not allowed
742
Stacktrace:
743
[...]
744
745
-julia> minimum([]; init=-1)
746
+julia> minimum([]; init=Inf)
747
748
749
minimum(a; kw...) = mapreduce(identity, min, a; kw...)
0 commit comments