String append: Difference between revisions
Content added Content deleted
(clarify how this task is different from mere concatenation) |
(further clarification) |
||
Line 1: | Line 1: | ||
{{task|Basic language learning}}[[Category:String manipulation]][[Category: String manipulation]]{{basic data operation}} |
{{task|Basic language learning}}[[Category:String manipulation]][[Category: String manipulation]]{{basic data operation}} |
||
Most languages provide a way to concatenate two string values, but some languages also provide a convenient way to append in-place to an existing string variable. |
Most languages provide a way to concatenate two string values, but some languages also provide a convenient way to append in-place to an existing string variable without referring to the variable twice. |
||
For this task, create a string variable equal to any text value. Append the string variable with another string literal, without |
For this task, create a string variable equal to any text value. Append the string variable with another string literal in the most idiomatic way, without double reference if your language supports it. |
||
Show the contents of the variable after the append operation. |
Show the contents of the variable after the append operation. |