KeyPathKit v1.4.0 Release Notes

Release Date: 2018-11-18 // over 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
    • 0๏ธโƒฃ 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()