http://docs.julialang.org/en/latest/stdlib/base/#Base.applicable

On Mon, Jul 6, 2015 at 11:25 AM, Simon Byrne <simonby...@gmail.com> wrote:

> If I have a generic method foo, is there a way I can tell if a particular
> signature has been defined?
>
> Note that I don't want method_exists (which simply determines if something
> can be dispatched), I want to determine if a particular definition has been
> made, e.g. if
>
> foo(x) = x
>
> then I want
>
> method_defined(foo,(Int,)) == false
> method_defined(foo,(Any,)) == true
>
>
>
>

Reply via email to