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: Sun Mar 17 2024 00:27:00 GMT-0900 (Hawaii-Aleutian Daylight Time)