In Julia Language, to find out basic method information of a function, simply type the function name at the Julia prompt:
julia> println
println (generic function with 3 methods)
To find out the signatures of those methods, we use the methods() function:
julia> methods(println)
# 3 methods for generic function "println":
println(io::IO) in Base at coreio.jl:6
println(io::IO, xs...) in Base at strings/io.jl:54
println(xs...) in Base at coreio.jl:5
julia>
Refer: https://docs.julialang.org/en/stable/manual/methods/
julia> println
println (generic function with 3 methods)
To find out the signatures of those methods, we use the methods() function:
julia> methods(println)
# 3 methods for generic function "println":
println(io::IO) in Base at coreio.jl:6
println(io::IO, xs...) in Base at strings/io.jl:54
println(xs...) in Base at coreio.jl:5
julia>
Refer: https://docs.julialang.org/en/stable/manual/methods/
No comments:
Post a Comment