FuncKeyPath

main

Operator for creating functions out of KePath.
sloik/FuncKeyPath

FuncKeyPath

Operator for creating functions out of KePath.

Why?

Sometimes I want to use KePath as a function but it's not possible.

Well, not it is 🤓

How to use...

Just prepend ^ before the keypath and you are set 😎

...
.map( ^\URL.sheme ) // now keypath is a function
...

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 23:13:29 GMT-0900 (Hawaii-Aleutian Daylight Time)