mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
Adds two overloads for relocating elements within an `OrderedSet`: one taking a contiguous `Range<Int>`, and one taking a `Sequence<Element>`. The moved elements occupy consecutive positions starting at the destination, in the order they appear in the input. The hot path runs in O(*d* + *k*) time, where *d* is the distance moved and *k* is the number of elements moved; the implementation falls back to O(`count`) for large moves.