Basically I'm looking for a function that does the opposite of the following.
(intern "CAR")
This question is related. In Common Lisp, is there a function that returns a symbol from a given string?
Either string
or symbol-name
would work to get the name of a symbol.
If you know specifically that you're passing n a symbol, symbol-name
might allow both a compiler to generate better code as well as signal to a human reader that the argument is expected to be a symbol.
The operator you are looking for is string
(see the manual):
(string (intern "CAR"))
returns "CAR".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With