[plt-scheme] Re: Word permutations - with a slight twist

From: wooks (wookiz at hotmail.com)
Date: Thu Jan 18 07:29:22 EST 2007

Andrew Gwozdziewycz wrote:

> On Jan 18, 2007, at 2:13 AM, wooks wrote:
>
> > I chose to represent the letters of the alphabet as a list because you
> > can't get the length of a symbol
>
> I'm a total n00b when it comes to scheme, but I do know that symbol-
>  >string and string->symbol allow you to convert
> symbols to strings and strings to symbols respectively. Take this
> example:
>
>  > (symbol->string 'x)
> "x"
>  > (string-length (symbol->string 'x))
> 1
>  >
>  > (symbol? (string->symbol "hello"))
> #t
>  >
>
> Hope this helps.
>

Yes thanks. I'd forgotten about that.   I'm only able to dabble in
scheme sporadically. I'll throw that into the mix and see what happens.



Posted on the users mailing list.