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 !

elmattic
  • 12,046
  • 5
  • 43
  • 79

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
  • 117,631
  • 17
  • 236
  • 300