1

Consider the code sample:

let foo x = x

let bar f =
  printf "function name is %s" (*?*)

bar foo //should print: "function name is foo" 

Thanks a lot !

Stringer
  • 11,813
  • 5
  • 39
  • 77

1 Answers1

4

You can't, sorry. (Depending on exactly what you want to do, there may be a constraint here you can weaken and get a job done.)

Possibly see also Getting the name of the parameter passed into a method

Community
  • 1
  • 1
Brian
  • 115,505
  • 16
  • 230
  • 296