Re: [racket-users] Re: How to convert String to Integer

2020-02-11 Thread Philip McGrath
On Tue, Feb 11, 2020 at 3:28 PM Alain De Vos wrote: > But first i need a list of characters. :) > Does the language has a conversion operator ? > Yes, `string->list`: https://docs.racket-lang.org/reference/strings.html#(def._((quote._~23~25kernel)._string-~3elist)) But read on … On Tue, Feb 11,

Re: [racket-users] Re: How to convert String to Integer

2020-02-11 Thread Sorawee Porncharoenwase
You can convert a string to a list of characters by using string->list. The code snippet that you presented in your very first post also uses this function. > (string->list "abc") - : (Listof Char) '(#\a #\b #\c) What I want to ask you though is what is wrong with the code that Phillip suggested?