Skip to content

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

Merged
natecook1000 merged 2 commits into
apple:mainfrom
ttsugriy:minmax-empty
Oct 31, 2023
Merged

[minmax] Do nothing for empty suffix/prefix.#202
natecook1000 merged 2 commits into
apple:mainfrom
ttsugriy:minmax-empty

Conversation

@ttsugriy
Copy link
Copy Markdown
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
Copy Markdown
Member

@swift-ci test

@natecook1000
Copy link
Copy Markdown
Member

@swift-ci Please test

@natecook1000
Copy link
Copy Markdown
Member

Thanks for this fix, @ttsugriy! 👏🏻

@natecook1000 natecook1000 merged commit dd4e0e7 into apple:main Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants