Commit Graph

14 Commits

Author SHA1 Message Date
Alejandro Alonso 70360f3888 Reapply "[stdlib] Implement RigidArray and UniqueArray from swift-collections"
This reverts commit dcd214065f.
2026-06-09 10:44:04 -07:00
Dave Inglis dcd214065f Revert "[stdlib] Implement RigidArray and UniqueArray from swift-collections" 2026-06-04 16:23:43 -04:00
Alejandro Alonso 6aff6b4893 Add minimumCapacity init for UniqueArray and remove keepingCapacity argument 2026-05-28 12:24:37 -07:00
Alejandro Alonso b30471ea7a Use consuming instead of __owned 2026-05-28 12:24:15 -07:00
Alejandro Alonso 1c13e9b9a1 Rename the replace operations to replaceSubrange 2026-05-27 12:35:44 -07:00
Alejandro Alonso d7a2ff7c7b Make RigidArray internal 2026-05-27 12:28:12 -07:00
Alejandro Alonso d4a4130ba4 UniqueArray.replace(removing:copying): Fix overallocation issue
Co-Authored-By: Karoy Lorentey <klorentey@apple.com>
2026-05-27 10:33:54 -07:00
Karoy Lorentey c88e0faf67 [stdlib] Fix constraints on {Rigid,Unique}Array.isTriviallyIdentical(to:) 2026-05-27 10:33:54 -07:00
Karoy Lorentey 4c692b3af3 [stdlib] Define {Rigid,Unique}Array.de{,bugDe}scription while we’re waiting for SE-0499 2026-05-27 10:33:53 -07:00
Karoy Lorentey 4432780f68 [stdlib] Typo fixes 2026-05-27 10:33:53 -07:00
Alejandro Alonso f62a93281f Use standard library assertions and preconditions 2026-05-27 10:33:52 -07:00
Alejandro Alonso da0384ad50 Remove RigidArray insert overload 2026-05-27 10:33:52 -07:00
Alejandro Alonso acb1fa3033 Adjust UniqueArray sources for the stdlib 2026-05-27 10:33:48 -07:00
Alejandro Alonso 41531eea2d Bring UniqueArray from swift-collections to the stdlib
Co-Authored-By: Karoy Lorentey <klorentey@apple.com>
2026-05-27 10:33:46 -07:00