Post AcMrOnUQHYq6mgqWbA by Ardubal@mastodon.xyz
(DIR) More posts by Ardubal@mastodon.xyz
(DIR) Post #AcMp21FujcAmuU4RaS by galdor@emacs.ch
2023-12-01T13:38:03Z
0 likes, 0 repeats
I just realized we do not need a PARSE-DIGIT function in #CommonLisp because we can just use PARSE-INTEGER with the right :START and :END keyword arguments. And yes you can choose the radix.
(DIR) Post #AcMrOnUQHYq6mgqWbA by Ardubal@mastodon.xyz
2023-12-01T14:04:35Z
0 likes, 0 repeats
@galdor Usually you'd use digit-char-p for characters. http://clhs.lisp.se/Body/f_digi_1.htm#digit-char-p
(DIR) Post #AcMsAtpnzlnOMXmhvs by galdor@emacs.ch
2023-12-01T14:13:16Z
0 likes, 0 repeats
@Ardubal And now I learned that DIGIT-CHAR-P returns the number on success. Thank you!