Re: code duplication: (setq r (concatenate 'string r (format nil ...
- From: Raymond Wiker <rwiker@xxxxxxxxx>
- Date: Thu, 07 Jun 2012 20:29:24 +0200
Bigos <ruby.object@xxxxxxxxxxxxxx> writes:
Hi,
I wrote a function where half of the code starts with:
setq r (concatenate 'string r (format nil ...
Is there a better way to do it?
If it's the same "r", you should probably look at
with-output-to-string... something like
(with-output-to-string (s)
(format s ...)
(format s ...))
=> returns everything concatenated into (or written to) s.
.
- Follow-Ups:
- References:
- Prev by Date: code duplication: (setq r (concatenate 'string r (format nil ...
- Next by Date: Re: format indentation
- Previous by thread: code duplication: (setq r (concatenate 'string r (format nil ...
- Next by thread: Re: code duplication: (setq r (concatenate 'string r (format nil ...
- Index(es):