Skip to content

[minmax] Do nothing for empty suffix/prefix. #202

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

ttsugriy
Copy link
Contributor

@ttsugriy ttsugriy commented Sep 8, 2023

Semantically it's a noop but it's slightly more efficient for the case when max/min is requested for an empty Collection.

It's a semantical noop but slightly more efficient for the case when max/min is requested for an empty Collection.
@stephentyrone
Copy link
Member

@swift-ci test

@natecook1000
Copy link
Member

@swift-ci Please test

@natecook1000
Copy link
Member

Thanks for this fix, @ttsugriy! 👏🏻

@natecook1000 natecook1000 merged commit dd4e0e7 into apple:main Oct 31, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants