title: Scala - get function name
body: <p>I have a function <code>foo</code> which takes another function (say <code>bar</code>) as a parameter. Is there a way to get the function name of <code>bar</code> as a string inside <code>foo</code>?</p>