Re: no char->string / string-append
- From: Lauri Alanko <la@xxxxxx>
- Date: 27 Jan 2006 17:17:20 GMT
In article <slrndtkkud.1pc.leadvoice@xxxxxxxxxxxxxxxxxx>,
Neil Cerutti <leadvoice@xxxxxxxxx> wrote:
> Do I have to use make-string to append chars onto the end of
> strings? A la
>
> (string-append "Hello" (make-string 1 #\!))
Well, (string-append "Hello" (string #\!)) is marginally simpler. I'm
assuming that #\! here really indicates a non-constant character.
> I suppose the real solution would be to not use string-append at
> all. Any advice?
Appending strings is slow. Use string ports (srfi-6) if you have them.
Lauri
.
- Follow-Ups:
- Re: no char->string / string-append
- From: Neil Cerutti
- Re: no char->string / string-append
- References:
- no char->string / string-append
- From: Neil Cerutti
- no char->string / string-append
- Prev by Date: no char->string / string-append
- Next by Date: Metaprogramming using Scheme
- Previous by thread: no char->string / string-append
- Next by thread: Re: no char->string / string-append
- Index(es):
Relevant Pages
|