Take advantage of features introduced in Swift 5.2, such as:
KeyPaths as functions: this was already supported, in some types in Bow, so these specific overloads are removed as the default, function-based ones are compatible with KeyPaths.
callAsFunction: types wrapping functions include this feature to be able to be invoked as a function. For instance, a Kleisli function can be invoked as kleisli(x) instead of kleisli.run(x).
Goal
Take advantage of features introduced in Swift 5.2, such as:
callAsFunction
: types wrapping functions include this feature to be able to be invoked as a function. For instance, a Kleisli function can be invoked askleisli(x)
instead ofkleisli.run(x)
.