Hi, everyone.
Example:
f(x::Int) = x+1
mt = get_latest_method(f) # mt -> function f with signature Int
f(x::Float64) = x*2.0
mt = get_latest_method(f) # mt -> function f with signature Float64
f(x::Int,y::Float64) = x*y
mt = get_latest_method(f) # mt -> function f with signature (Int,Float64)
Is there a way to do this?
please don’t tell me to diff between 2 methods(f) to see which one it is.
There should be adding order to the methodlist
Thanks