RosettaCodeData/Task/Generic-swap/Gri/generic-swap-2.gri
2016-12-05 23:44:36 +01:00

15 lines
222 B
Text

`Swap Syns &\a &\b'
{
new \temp
\temp = "\.word2."
\.word2. = "\.word3."
\.word3. = "\temp"
delete \temp
}
\quux = "one"
\xyzzy = "two"
Swap Syns &\quux &\xyzzy
show "\quux \xyzzy"
# prints "two one"