Jump to content

String append: Difference between revisions

→‎Tcl: Added implementation
(→‎Tcl: Added implementation)
Line 28:
123456789!
</pre>
 
=={{header|Tcl}}==
String concatenation is a fundamental feature of the Tcl language, and there is also an <code>append</code> that makes concatenation even simpler:
<lang tcl>set s "he"
set s "${s}llo wo"; # The braces distinguish varname from text to concatenate
append s "rld"
puts $s</lang>
{{out}}<pre>hello world</pre>
 
=={{header|Wart}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.