enquote

Return string representation of argument. If argument is already a string or a character, enquote it to make it more readable.

string
enquote
(
T
)
(
T arg
)

Examples

assert(enquote(0) == "0");
assert(enquote(enquote(0)) == `"0"`);
assert(enquote("foo") == `"foo"`);
assert(enquote('a') == "'a'");

Meta