Releases: vincent-pradeilles/KeyPathKit
Releases · vincent-pradeilles/KeyPathKit
KeyPathKit 1.6.0
Update compatible with Swift 5
1.5.1
KeyPathKit 1.5.0
- Implement pattern matching with predicates
KeyPathKit 1.4.0
- Modernize API by using
by:label instead ofof:to match more closely with Swift stdlib - Use
reduce(into:)for better performances
Enhanceorandandto 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 withHashableelements in order to use aSet– it should make thecontainslookup faster - Enhance
filterto immediatly return on the first element that doesn't match the expression requirement - Pull NSPredicate init out of
filterclosure in order to init it only once - Leverage Swift 4.0 new "subscript with default value" Dictionary API (SE-0165)
- Use stdlib
min(by:)andmax(by:)methods instead of a customreduce()