[SR-6865] Sorted collections #49414
Labels
feature
A feature request or implementation
good first issue
Good for newcomers
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: 5e738267ffe5dde28ff4e498aac141e3
Issue Description:
It would be useful to have sorted equivalents of
Set
,Dictionary
andArray
, that kept their elements in sorted order, and only requiredComparable
, or could take a custom comparator.SortedSet
andSortedDictionary
would probably be best represented by a tree, whereasSortedArray
would be represented by contiguous storage and would need an API for efficiently adding new entries in bulk.The text was updated successfully, but these errors were encountered: