Releases: apple/swift-algorithms
Releases · apple/swift-algorithms
Swift Algorithms 0.0.2
Changes
- The
rotate(at:)method has been updated torotate(toStartAt:), with the old name deprecated. - The
chained(with:)method has been changed to the free functionchain(_:_:), with the old version deprecated. Algorithmsnow usesRealModulefrom theswift-numericspackage for its cross-platform elementary functions.- Sequence/collection wrapper types, like
PermutationsandIndexed, now have conformance to the lazy protocols, so that any following operations maintain their laziness.
Fixes
- Swift Algorithms now builds under SwiftPM on Windows.
- A wide variety of errors, misspellings, and ommissions in the documentation and guides have been fixed.
- Index/distance calculations for the
Product2andChaintypes have been corrected. - Calling
stablePartition(subrange:by:)now correctly uses the subrange's length instead of the whole collection.
Swift Algorithms 0.0.1
Initial release.