Swift Algorithms 0.0.4
Additions
More new algorithms to join the party:
- A lazy version of the standard library's two
splitmethods. (#78) firstNonNil(_:)returns the first non-nilelement from an optional-generating transform. (#31)uniquePermutations()skips duplicates when generating permutations of a collection. (#91)- The
reductionsmethods return all the in-between states of reducing a sequence or collection. (#46)
Fixes
- Methods and computed properties are more consistently marked as inlinable, resolving a performance regression.
- The
Stridetype now efficiently calculates distances between positions, supported by the underlying collection. - Better test coverage and improved diagnostics for comparing sequences.
- Fixed links and improved documentation.