I am writing a macro, that takes a function name, and declares a couple of other version of the function. I want to give these variations the same doc string as the original method, with perhaps a few changes.
To do this, I need to retrieve the docstring for the orginal method.
So what I am looking for is a function:
get_docstring(functionname::Symbol, argtypes)::String
So that I could do:
julia> s=get_docstring(:values,(Associative,))
and then s
would be set to:
s="""
values(a::Associative)
Return an iterator over all values in a collection.
`collect(values(d))` returns an array of values.
```jldoctest
julia> a = Dict('a'=>2, 'b'=>3)
Dict{Char,Int64} with 2 entries:
'b' => 3
'a' => 2
julia> collect(values(a))
2-element Array{Int64,1}:
3
2
```
"""