Next: tostr
Prev: toint
toliteral(data)This function converts any data to a
C-- literal or constructor
expression which, when read by the interpreter, will result in the same
data object.
Examples:
toliteral([3, "foo", 'bar, #60, ~none])
=> "[3, \"foo\", 'bar, #60, ~none]"
toliteral(tosym("foo-" + tostr(3 + 4)))
=> "tosym(\"foo-7\")"
toliteral(<#56, #[['type, 'obj], ['obj, #22]]>)
=> "<#56, #[['type, 'obj], ['obj, #22]]>"