You can get the signatures of the methods of the functions in your cell:
for m in methods(sin)
@show m.sig
end
Then figure out from there how to best call them.
On Thu, 2015-02-12 at 06:12, Christian Peel <[email protected]> wrote:
> In Julia, if I have multiple functions with the same name but different
> arguments, the core of the language takes care of calling the right
> function.
>
> Let's say I have a cell which contains some functions which are related,
> but each take slightly different arguments. I'd like to call each of these
> functions with the appropriate arguments. Is it possible in Julia to do my
> own 'multiple dispatch' similar to that which the core of the language
> does? I.e. can I somehow check the arguments of each function in the cell,
> and call each with the appropriate arguments? I guess there is a simple
> answer to this, but for whatever reason I haven't found it.
>
> Thanks!