Navigation :
nameof
nameof, function
def const pure nameof(expr: any): text
Returns the source text of expr without evaluating it.
Examples
table T = with
[| as Value |]
[| 1 |]
nameA = nameof(1 + 2)
nameB = nameof(T.Value)
show table "Names" with
nameA as "Expr"
nameB as "Column"
This produces the following table:
| Expr |
Column |
| (1 + 2) |
Value |
nameof(T.Value) returns Value rather than T.Value.