I want to do the following but it is not working:
infix operator <=== {}
func <===<T> (inout lhs: T, rhs:ObservableProperty<T>) -> ()
{
rhs.observe()
{
newValue in
lhs = newValue
}
}
ObservableProperty<T>
is a custom class I wrote which has an observe()
method.