String concatenation: Difference between revisions

Add lang example
(→‎sed: add)
(Add lang example)
Line 1,157:
{christian_name} {name}
-> 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>
 
168

edits