String append: Difference between revisions

m
→‎{{header|Quackery}}: better quotation
(Added Quackery.)
m (→‎{{header|Quackery}}: better quotation)
Line 1,311:
=={{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 with a Jules Renard quotation.
 
<lang Quackery> [ tuck take swap join swap put ] is append ( [ s --> )
$ "IfL'homme youqui canattend seede avoir un canard roti voler duck," temp put
$ "dans itsa canbouche seedoit youattendre tres, tres longtemps." temp append
temp take echo$ </lang>
 
{{out}}
 
<pre>L'homme qui attend de voir un canard roti voler dans sa bouche doit attendre tres, tres longtemps.</pre>
<pre>If you can see a duck, it can see you.</pre>
 
=={{header|Racket}}==
1,462

edits