modifying

fun <Root, Value> Root.modifying(keyPath: WritableKeyPath<Root, Value>, update: (Value) -> Value): Root

Transforms keyPath's focus and returns the resulting root.