[racket] changing a string into a list

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Jul 14 22:57:21 EDT 2010

I'd compose the two maps into one: 

 (map (compose string->symbol string) (string->list x))



On Jul 14, 2010, at 10:51 PM, Todd O'Bryan wrote:

> I want to change a "STRING" into a list of symbols '(S T R I N G), but
> can't find a very direct way to do it.
> 
> The best I've got is
> 
> (map string->symbol (map string (string->list "STRING")))
> 
> Is there something better I'm missing?
> 
> Todd
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users



Posted on the users mailing list.