# Getting function signature expression from method instance

**URL:** <https://discourse.julialang.org/t/getting-function-signature-expression-from-method-instance/71639>\
**Category:** General Usage\
**Tags:** metaprogramming, parametric-methods\
**Created:** [November 17, 2021, 9:08am UTC](https://discourse.julialang.org/t/getting-function-signature-expression-from-method-instance/71639 "2021-11-17T09:08:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)\
**Post date:** [November 17, 2021, 9:08am UTC](https://discourse.julialang.org/t/getting-function-signature-expression-from-method-instance/71639/1 "2021-11-17T09:08:20Z")

</div>

Is there an existing function to get a method definition expression from the `Method` instance?

As example, I would like to have some function `signature_expression` such that:

```julia
ff(a::T, b::C, c::Tuple{Real,Real}) where {T <: Real,C} = "DO SOMETHING"
mtd = methods(ff)[1]
signature_expression(mtd) == :(ff(a::T, b::C, c::Tuple{Real,Real}) where {T <: Real,C})

```
