String append: Difference between revisions
Added Quackery.
(Added AppleScript implementation) |
(Added Quackery.) |
||
Line 1,308:
{{out}}
<pre>String append</pre>
=={{header|Quackery}}==
Quackery has no variables. The nearest equivalent is ''ancillary stacks''. The word <code>join</code> will return the concatenation of two nests on the stack, and hence two strings, as strings are a particular usage of nests. Here we define the word <code>append</code> to join a nest on the stack to a nest on the ancillary stack <code>temp</code>, and then demonstrate its use.
<lang Quackery> [ tuck take swap join swap put ] is append ( [ s --> )
$ "If you can see a duck," temp put
$ " it can see you." temp append
temp take echo$ </lang>
{{out}}
<pre>If you can see a duck, it can see you.</pre>
=={{header|Racket}}==
|