String append: Difference between revisions
Content added Content deleted
m (→{{header|Quackery}}: better quotation) |
m (→{{header|Quackery}}: reworded commentary) |
||
Line 1,311: | Line 1,311: | ||
=={{header|Quackery}}== |
=={{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 |
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 an ancillary stack, and then demonstrate its use with a Jules Renard quotation and the predefined ancillary stack <code>temp</code>. |
||
<lang Quackery> [ tuck take swap join swap put ] is append ( [ s --> ) |
<lang Quackery> [ tuck take swap join swap put ] is append ( [ s --> ) |