unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* concat a list of strings
@ 2006-07-27 19:01 Andreas Seik
  2006-07-27 19:22 ` Johan Bockgård
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andreas Seik @ 2006-07-27 19:01 UTC (permalink / raw)


Hello Newsgroup,

i just started to write some code in lisp.
now i want to concat a list of strings (name it stringlist) to one string.
(concat stringlist) will not work cause concat needs lists of chars not of
strings.
Do i have to write a loop by myself or is there a faster predefined way?

Thank You,
Andreas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: concat a list of strings
  2006-07-27 19:01 concat a list of strings Andreas Seik
@ 2006-07-27 19:22 ` Johan Bockgård
  2006-07-27 20:54   ` Andreas Seik
  2006-07-27 20:10 ` Eric Hanchrow
       [not found] ` <mailman.4557.1154031829.9609.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 7+ messages in thread
From: Johan Bockgård @ 2006-07-27 19:22 UTC (permalink / raw)


Andreas Seik <andreas_neu@gmxpro.de> writes:

> i just started to write some code in lisp.
> now i want to concat a list of strings (name it stringlist) to one string.
> (concat stringlist) will not work cause concat needs lists of chars not of
> strings.
> Do i have to write a loop by myself or is there a faster predefined way?

C-h f apply

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: concat a list of strings
  2006-07-27 19:01 concat a list of strings Andreas Seik
  2006-07-27 19:22 ` Johan Bockgård
@ 2006-07-27 20:10 ` Eric Hanchrow
  2006-07-27 20:27   ` Pierre Lorenzon
       [not found] ` <mailman.4557.1154031829.9609.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 7+ messages in thread
From: Eric Hanchrow @ 2006-07-27 20:10 UTC (permalink / raw)


(concat "hey you" " buddy") => "hey you buddy"

Don't know why you think it doesn't work.
-- 
The story will be familiar to anyone who has ever seen a movie
about a troubled athlete and a brilliant coach.  It will also be
familiar to anyone who has not.
        -- Roger Ebert, on "Stick It" (2006)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: concat a list of strings
  2006-07-27 20:10 ` Eric Hanchrow
@ 2006-07-27 20:27   ` Pierre Lorenzon
  0 siblings, 0 replies; 7+ messages in thread
From: Pierre Lorenzon @ 2006-07-27 20:27 UTC (permalink / raw)
  Cc: help-gnu-emacs

Do not forget the mapconcat function  if you wish to introduce
a separator between the list elements.

Pierre.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: concat a list of strings
  2006-07-27 19:22 ` Johan Bockgård
@ 2006-07-27 20:54   ` Andreas Seik
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Seik @ 2006-07-27 20:54 UTC (permalink / raw)


Johan Bockgård wrote: 
> C-h f apply
Yes that's it - Thank You

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: concat a list of strings
       [not found] ` <mailman.4557.1154031829.9609.help-gnu-emacs@gnu.org>
@ 2006-07-27 21:02   ` Andreas Seik
  2006-07-27 23:09     ` Eric Hanchrow
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Seik @ 2006-07-27 21:02 UTC (permalink / raw)


Eric Hanchrow wrote:

> (concat "hey you" " buddy") => "hey you buddy"
> 
> Don't know why you think it doesn't work.
what do you mean with "it"? my problem our your code? :-)
I don't think that your code dosn't work :-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: concat a list of strings
  2006-07-27 21:02   ` Andreas Seik
@ 2006-07-27 23:09     ` Eric Hanchrow
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Hanchrow @ 2006-07-27 23:09 UTC (permalink / raw)


>>>>> "Andreas" == Andreas Seik <andreas_neu@gmxpro.de> writes:

    Andreas> what do you mean with "it"?  my problem our your code?
    Andreas> :-) Andreas> I don't think that your code dosn't work :-)

As is probably clear by now, I misunderstood your question.
-- 
It has been suggested that this article or section be merged
into Fried dough. (Discuss)
        -- Seen on Wikipedia

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-07-27 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 19:01 concat a list of strings Andreas Seik
2006-07-27 19:22 ` Johan Bockgård
2006-07-27 20:54   ` Andreas Seik
2006-07-27 20:10 ` Eric Hanchrow
2006-07-27 20:27   ` Pierre Lorenzon
     [not found] ` <mailman.4557.1154031829.9609.help-gnu-emacs@gnu.org>
2006-07-27 21:02   ` Andreas Seik
2006-07-27 23:09     ` Eric Hanchrow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).