RosettaCodeData/Task/String-prepend/00-TASK.txt

18 lines
535 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
{{basic data operation}}
[[Category:String manipulation]]
[[Category: String manipulation]]
[[Category:Simple]]
{{omit from|bc|No string operations in bc}}
{{omit from|dc|No string operations in dc}}
;Task:
Create a string variable equal to any text value.
Prepend the string variable with another string literal.
If your language supports any idiomatic ways to do this without referring to the variable twice in one expression, include such solutions.
To illustrate the operation, show the content of the variable.
<br><br>