formatNamed

Undocumented in source.
template formatNamed (
string text
)

Examples

import std.typecons : tuple;
import unit_threaded.should : shouldEqual;

formatNamed!("Hello %(second) World %(first)%(second)!")
    .values(tuple!("first", "second")("3", "5"))
    .shouldEqual("Hello 5 World 35!");

Meta