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. Algorithms
now usesRealModule
from theswift-numerics
package for its cross-platform elementary functions.- Sequence/collection wrapper types, like
Permutations
andIndexed
, 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
Product2
andChain
types 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.