How do I cast between symbols and strings? #2397
-
Beta Was this translation helpful? Give feedback.
Answered by
Kodiologist
Jan 28, 2023
Replies: 1 comment 6 replies
-
Did you try reading the section "Symbols" in the manual? Edit for future readers: you can convert a string to a symbol with |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
Kodiologist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you try reading the section "Symbols" in the manual?
Edit for future readers: you can convert a string to a symbol with
hy.models.Symbol
, and you can convert a symbol to a string withstr
.