Skip to content

Commit

Permalink
Adds Key Path Promotion Proposal and Implementation to Episode 0008’s…
Browse files Browse the repository at this point in the history
… Code Samples (#20)
  • Loading branch information
jasdev authored and mbrandonw committed May 15, 2019
1 parent 8a9baf9 commit cbae3ca
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,12 @@ users.sorted(by: their(^\.email, >))

users.max(by: their(^\.email.count))?.email
users.min(by: their(^\.email.count))?.email

/*:
[Greg Titus](https://twitter.com/gregtitus) and Point-Free’s own [Stephen Celis](https://twitter.com/stephencelis)
have since [pitched a Swift Evolution proposal](https://forums.swift.org/t/key-path-expressions-as-functions/19587)
and [an implementation](https://github.com/apple/swift/pull/19448) to allow `\Root.value` key path expressions
to be used wherever `(Root) -> Value` functions are applicable.
*/

//: [See the next page](@next) for exercises!

0 comments on commit cbae3ca

Please sign in to comment.