Say I have a function, call it
q and it has multiple signatures:
q(a,b) q(b) ...
And I have the relationship that
p = 1 - q
Is there a simpler way to define this other than to list out the same set of signatures?
I.e. not do the following
p(a,b) = 1 - q(a,b) p(b) = 1 - q(b) ...
I tried just saying
p = 1 - q but I get a
MethodError: no method matching -(::Int64, ::typeof(q))
p() = 1 - q() but that’s just defining a function with no arguments, not passing along a variable set to q