SortedArray
SortedArray copied to clipboard
An array that keeps its elements sorted according to a given sort predicate.
- initiablebyarrayliteral when element is comparable - init with sorted assert the array is sorted\ - subscript accessor is settable - add reserveCapacity method - use index type instead of...
I'd like to have a script that lets me spin up a few Docker containers (one per supported Swift version) and run the tests on Linux with a single command....
I was surprised to find that the sort position of an element is also being used to determine element equality. This is can be seen with the following test case:...