The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
KeyPathKit 1.6.0
5 years ago
Update compatible with Swift 5
KeyPathKit 1.5.0
5 years ago
* Implement pattern matching with predicates
KeyPathKit 1.4.0
5 years ago
- Modernize API by using `by:` label instead of `of:` to match more closely with Swift stdlib
- Use `reduce(into:)` for better performances
Enhance `or` and `and` to immediatly return on the first element that doesn't match the expression requirement – it has the benefits to make it work with infinite sequence
- Add a specialized version of `distinct()` that works with `Hashable` elements in order to use a `Set` – it should make the `contains` lookup faster
- Enhance `filter` to immediatly return on the first element that doesn't match the expression requirement
- Pull NSPredicate init out of `filter` closure in order to init it only once
- Leverage Swift 4.0 new "subscript with default value" Dictionary API (SE-0165)
- Use stdlib `min(by:)` and `max(by:)` methods instead of a custom `reduce()`