Determining whether two methods are both extensions of the same function?

You could also do this:

julia> import Distributions, Statistics, StatsBase

julia> Distributions.mean === Statistics.mean

julia> Distributions.mean === StatsBase.mean

julia> Statistics.mean === StatsBase.mean

This will print true if the two means are the same generic function.

5 Likes