What is the proper way to convert the character #\1
to the integer 1
?
I coerced a number into a list and got this:
(#\1 #\2 #\3)
and want to convert that into
(1 2 3)
CL-USER > (digit-char-p #\1)
1
digit-char-p
returns
NIL
otherwiseThus it is both:
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