JuliaLang/julia

min, min, minmax inconsistencies

Open

#61.841 geöffnet am 18. Mai 2026

Auf GitHub ansehen
 (13 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Julia (5.773 Forks)batch import
buggood first issuemaths

Repository-Metriken

Stars
 (48.709 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 23T 11h) (145 gemergte PRs in 30 T)

Beschreibung

The argument-handling of min, max, and minmax is currently somewhat inconsistent:

  • min and max can have 1+ arguments (code for 3+ args here), but minmax can only have 1 or 2 arguments (from discourse)
  • all three can have 1 numeric argument, but this is not mentioned in the docstrings
  • min and max support missing (returning missing), but throw a MethodError with a single missing argument ala min(missing)
  • minmax(missing, 1) is incorrect, returning (1, missing) rather than (missing, missing) — this is a clear bug

These are all easy to fix, so marking as "good first issue". Feel free to submit a single PR for just one of the above items.

Contributor Guide