Logo

Programming-Idioms

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
String t = s + i;
import "fmt"
t := fmt.Sprintf("%s%d", s, i)
t = s + i.to_s
uses SysUtils;
t := s + IntToStr(i);
let t = format!("{}{}", s, i);
import std.conv : to;
string t = s ~ to!string(i);
import std.format : format;
string t = "%s%d".format(s, i);
t = s ++ show i
uses Sysutils;
t := s + i.ToString;
#include <string>
auto t = s + std::to_string (i);
$t = $s . $i;
let t = s + i;
val t = s + i
my $t = "$s$i";
(format nil "~a~d" s i)
t : String := s & Integer'Image (i);
var t = $"{s} {i}";
(def t (str s i))
t =  s <>  to_string(i)
let t = `${s}${i}`
t = s .. i
t = f"{s}{i}"
import "strconv"
t := s + strconv.Itoa(i)
var t = '$s$i';
my $t = $s . $i;
t = "#{s}#{i}"
String t = "%s%s".formatted(s, i);
t := s, i asString.
let t = format!("{s}{i}");
t = s + str(i)
t = '%s%s' % (s, i)
t = '{}{}'.format(s, i)