# Regression in Set with Swift 5.5

**URL:** <https://forums.swift.org/t/regression-in-set-with-swift-5-5/53130>\
**Category:** Using Swift\
**Tags:** swift5, swift, stdlib\
**Created:** [October 28, 2021, 1:21pm UTC](https://forums.swift.org/t/regression-in-set-with-swift-5-5/53130 "2021-10-28T13:21:23Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![lorentey](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lorentey/32/1299_2.png) [@lorentey](https://forums.swift.org/u/lorentey)\
**Post date:** [November 2, 2021, 10:31pm UTC](https://forums.swift.org/t/regression-in-set-with-swift-5-5/53130/19 "2021-11-02T22:31:59Z")

</div>

That would be an excellent idea! Are you volunteering to write it up?

So right now we have:

- `Sequence.sorted()`, `.sorted(by:)`, `MutableCollection.sort()`, .`sort(by:)` should document that the sort algorithm is stable. (Starting from Swift x.y)
- `Set.union(_:)`, `Set.intersection(_:)`, and `Set.formIntersection(_:)` (all overloads) should document that members of the result that appear in both inputs are taken from `self`. (Interestingly, `formUnion` already has this guarantee.) (Starting from Swift 5.6)

Anything else?

---

_[View the full topic](https://forums.swift.org/t/regression-in-set-with-swift-5-5/53130)._
