How to use [get-name]

The reference page of get-name has its arguments, constraints and declaration.

Returns the name of the node referenced in its expression.

.foo
get-name:x:-