Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
Select your favorite languages :
  • Or search :

Idiom #289 Concatenate two strings

Create the string s by concatenating the strings a and b.

S : constant String := A & B;
(def s (str a b))
string s = String.Concat(a,b);
string s = a + b;
var s = a + b;
var s = '$a$b';
s = a // b
s := a + b
s = a <> b
s = a ++ b
const s = a + b;
String s = a.concat(b);
String s = a + b;
val s = a + b
$s = $a.$b;
s := a + b;
my $s = $a . $b;
s = a + b
s = a + b
let s = format!("{}{}", a, b);
let s = a + b;
s = a & b

New implementation...