How to get a name of a variable coming into a function as a parameter using F#?
- by Oldrich Svec
Is there any way in F# how to get a name of a variable passed into a function?
Example:
let velocity = 5
let fn v = v.ParentName
let name = fn velocity // this would return "velocity" as a string
Thank you in advance