String concatenation: Difference between revisions
Content added Content deleted
(Added output) |
|||
Line 1,947: | Line 1,947: | ||
see astring + bString + nl |
see astring + bString + nl |
||
</syntaxhighlight> |
</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}}== |
=={{header|Ruby}}== |