Skip to content

How do I cast between symbols and strings? #2397

Answered by Kodiologist
glyh asked this question in Q&A
Discussion options

You must be logged in to vote

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 with str.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Kodiologist
Comment options

@glyh
Comment options

@Kodiologist
Comment options

@glyh
Comment options

@Kodiologist
Comment options

Answer selected by Kodiologist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants