March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,9 +1,6 @@
|
|||
import std.stdio: writeln;
|
||||
import std.string: format;
|
||||
|
||||
void main() {
|
||||
auto original = "Mary had a %s lamb.";
|
||||
auto extra = "little";
|
||||
auto modified = format(original, extra);
|
||||
writeln(modified);
|
||||
import std.stdio, std.string;
|
||||
|
||||
"Mary had a %s lamb.".format("little").writeln;
|
||||
"Mary had a %2$s %1$s lamb.".format("little", "white").writeln;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue