String concatenation: Difference between revisions

(Added output)
Line 1,947:
see astring + bString + nl
</syntaxhighlight>
 
=={{header|RPL}}==
This example showcases the 2 types of variables offered by RPL : temporary ones declared with <code>→</code> that disappear when the program ends, and persistent ones declared with the <code>STO</code> (for STOre) instruction.
≪ "Hello " → string1
≪ string1 " world" + 'string2' STO
string1 string2
{{works with|Halcyon Calc|4.2.7}}
{{out}}
<pre>
2: "Hello"
1: "Hello world"
</pre>
 
=={{header|Ruby}}==
1,150

edits