Anonymous user
String concatenation: Difference between revisions
Nimrod -> Nim
(Nimrod -> Nim) |
|||
Line 769:
(println str2)))</lang>
=={{header|
Strings can be concatenated with <code>&</code>.
<lang
echo(str & " literal.")
str1 = str1 & " literal."
Line 779:
Strings can be concatenated as arrays and joined with a separating characters:
<lang
echo(join([str1, " literal.", "HelloWorld!"], "~~"))
Line 785:
Strings can be combined using string formatting:
<lang
echo "$# $# $#" % [str1, "literal.", "HelloWorld!"]
|