Troubles extending a string...
From: Jeff (jma_at_insightbb.com)
Date: 08/24/04
- Next message: Drew Crampsie - Software Developer: "Re: tools for creating documentation for lisp?"
- Previous message: David Steuber: "Re: Lisp readability"
- Next in thread: Björn Lindberg: "Re: Troubles extending a string..."
- Reply: Björn Lindberg: "Re: Troubles extending a string..."
- Reply: Pascal Bourguignon: "Re: Troubles extending a string..."
- Reply: Peter Seibel: "Re: Troubles extending a string..."
- Reply: Harald Hanche-Olsen: "Re: Troubles extending a string..."
- Reply: Matthew Danish: "Re: Troubles extending a string..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Aug 2004 11:58:50 -0700
Is there any way to append a string onto another string without using
CONCATENATE? The problem I am having is that I'm building a string,
character by character, using VECTOR-PUSH-EXTEND. However, this process
is recursive:
(defun build-string ()
(let ((s1 (create-adjustable-string-vector)))
(if (check-for-recursion)
(let ((s2 (build-string)))
(---> want to append s2 to s1 here <---))
s1)))
The algorithm (of course) is a little more complicated than this. My
initial attempt was to use CONCATENATE and just set 's1' to the return
value, but this fails later on, as the string returned by CONCATENATE
doesn't appear to be adjustable any more. Is there a way to append a
string in-place?
Thanks!
Jeff
- Next message: Drew Crampsie - Software Developer: "Re: tools for creating documentation for lisp?"
- Previous message: David Steuber: "Re: Lisp readability"
- Next in thread: Björn Lindberg: "Re: Troubles extending a string..."
- Reply: Björn Lindberg: "Re: Troubles extending a string..."
- Reply: Pascal Bourguignon: "Re: Troubles extending a string..."
- Reply: Peter Seibel: "Re: Troubles extending a string..."
- Reply: Harald Hanche-Olsen: "Re: Troubles extending a string..."
- Reply: Matthew Danish: "Re: Troubles extending a string..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|