Skip to content

Conversation

michallepicki
Copy link
Contributor

  • Add min_max/1 spec for confirming quickly that it returns a tuple
  • Add back min_max/2 spec for the empty_result fallback clause, as a separate spec with non overlapping domain
  • Add min_max/2 empty head so that the doc shows 2nd arg as sorter_or_empty_fallback and not just empty_fallback from the first clause

(min_max/3 spec didn't change, was only re-formatted for compactness)

- Add min_max/1 spec for confirming quickly that it returns a tuple
- Add back min_max/2 spec for the empty_result fallback clause, as a separate spec with non overlapping domain
- Add min_max/2 empty head so that the doc shows 2nd arg as sorter_or_empty_fallback and not just empty_fallback from the first clause
@josevalim josevalim merged commit 2cfd329 into elixir-lang:main Aug 5, 2025
13 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

ggVGc pushed a commit to ggVGc/elixir-verbatim that referenced this pull request Sep 12, 2025
- Add back min_max/2 spec for the empty_result fallback clause,
  as a separate spec with non overlapping domain
- Merge min_max/1 and min_max/2 definitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants