Instance Method
set(_:to:)
Set a value to the
Extend storage.mutating func set<T>(_ key: AnyKeyPath, to newValue: T)
Discussion
KeyPath-based alternative to set(_:to:).
extend.set(\MyType.Foo, to: foo)
Instance Method
Extend storage.mutating func set<T>(_ key: AnyKeyPath, to newValue: T)
KeyPath-based alternative to set(_:to:).
extend.set(\MyType.Foo, to: foo)