String concatenation: Difference between revisions

Content added Content deleted
(→‎sed: add)
(Add lang example)
Line 1,157: Line 1,157:
{christian_name} {name}
{christian_name} {name}
-> Albert de Jeumont-Schneidre
-> Albert de Jeumont-Schneidre
</syntaxhighlight>

=={{header|Lang}}==
<syntaxhighlight lang="lang">
$s1 = hello
$s2 = \sworld

fn.println($s1 world)
# Output: hello world

fn.println($s1$s2)
# Output: hello world

fn.println(fn.concat($s1, $s2))
# Output: hello world

fn.println(parser.op($s1 ||| $s2))
# Output: hello world

fn.println(fn.add($s1, $s2))
# Output: hello world

fn.println(parser.op($s1 + $s2))
# Output: hello world
</syntaxhighlight>
</syntaxhighlight>