[SR-889] Collection algorithms that return indices of minimum and maximum elements #43501
Labels
feature
A feature request or implementation
good first issue
Good for newcomers
improvement
standard library
Area: Standard library umbrella
swift evolution proposal needed
Flag → feature: A feature that warrants a Swift evolution proposal
Additional Detail from JIRA
md5: 323a62523ad9d65ac164670698a6c6ee
relates to:
Issue Description:
Some collections naturally maintain sorted order and can implement `minElement()` and `maxElement()` in O(1). But these APIs only return elements themselves. It is sometimes useful to get indices instead (e.g., if you want to mutate the element in the collection).
The text was updated successfully, but these errors were encountered: