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

Get the argument names of an function

$
0
0

@Elmer_Cusipuma wrote:

For an arbitrary function

function f(x,y,z=3)
    p = x+y*z
    return p 
end

I want to be able take the argument names of f

julia> argument_names(f)
3-element Array{Symbol,1}:
 :x
 :y
 :z

Is this possible?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images