RosettaCodeData/Task/Copy-a-string/Jq/copy-a-string.jq
2023-07-01 13:44:08 -04:00

8 lines
223 B
Text

def demo:
"abc" as $s # assignment of a string to a variable
| $s as $t # $t points to the same string as $s
| "def" as $s # This $s shadows the previous $s
| $t # $t still points to "abc"
;
demo