-
| https://janet-lang.org/docs/strings.html |
Beta Was this translation helpful? Give feedback.
Answered by sogaiu Mar 18, 2025
Replies: 1 comment 1 reply
-
| There isn't a syntax for character literals AFAIU, however you can do a compile-time thing with: (chr "a") # => 97Note that this only works for strings of length one - so in janet's case that means a single byte. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by Inc0n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
There isn't a syntax for character literals AFAIU, however you can do a compile-time thing with:
Note that this only works for strings of length one - so in janet's case that means a single byte.