RE: [julia-users] Getting parameter names from Method

2016-11-07 Thread David Anthoff
-users Subject: Re: [julia-users] Getting parameter names from Method julia> mt=methods(randjump) # 2 methods for generic function "randjump": randjump(r::MersenneTwister, jumps::Integer) at random.jl:145 randjump(mt::MersenneTwister, jumps::Integer, jumppoly::AbstractString) at

Re: [julia-users] Getting parameter names from Method

2016-11-04 Thread Ralph Smith
day, November 4, 2016 3:54 PM > > To: Julia Users > > > Subject: Re: [julia-users] Getting parameter names from Method > > > > On Fri, Nov 4, 2016 at 6:31 PM, David Anthoff > > > wrote: > > > Is there a way to get the names of the parameters of a m

RE: [julia-users] Getting parameter names from Method

2016-11-04 Thread David Anthoff
> To: Julia Users > Subject: Re: [julia-users] Getting parameter names from Method > > On Fri, Nov 4, 2016 at 6:31 PM, David Anthoff > wrote: > > Is there a way to get the names of the parameters of a method from a > > Method type instance on julia 0.5? > > Roughly:

Re: [julia-users] Getting parameter names from Method

2016-11-04 Thread Yichao Yu
On Fri, Nov 4, 2016 at 6:31 PM, David Anthoff wrote: > Is there a way to get the names of the parameters of a method from a Method > type instance on julia 0.5? Roughly: nargs tell you how many arguments the method accepts, the first one being the object (function) being called. The local variab