boolToString

Convert bool to string. Can be used to set boolean values.

@nogc @safe nothrow pure
string
boolToString
(
bool b
)

Examples

assert(boolToString(false) == "false");
assert(boolToString(true) == "true");

See Also

Meta