Logo

Programming-Idioms

History of Idiom 153 > diff from v9 to v10

Edit summary for version 10 by Bzzzzzzzz:
New D implementation by user [Bzzzzzzzz]

Version 9

2017-07-26, 00:36:11

Version 10

2017-08-13, 01:00:40

Idiom #153 Concatenate string with integer

Create string t as the concatenation of string s and integer i.

Idiom #153 Concatenate string with integer

Create string t as the concatenation of string s and integer i.

Extra Keywords
int concat
Extra Keywords
int concat
Imports
import std.format : format;
Code
string t = "%s%d".format(s, i);
Comments bubble
using the format function
Doc URL
https://dlang.org/phobos/std_format.html#.format