Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Get the name of a function in the argument

$
0
0

I would like to have a function that returns the name of the function in the argument, e.g.:

function give_me_my_name(f::Function)
    return ??? (f);
end

such that

give_me_my_name(sin)

returns

sin

as a string. How do I do that?

8 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles