Functions don’t have access to the names of input variables. There could be a macro to do this, though.
(The reason nilshg’s suggestion works is that (; x )
is interpreted as (; x=x )
, so the tuple stores the variable name)
Functions don’t have access to the names of input variables. There could be a macro to do this, though.
(The reason nilshg’s suggestion works is that (; x )
is interpreted as (; x=x )
, so the tuple stores the variable name)