[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with mapconcat
From: |
Christian Wittern |
Subject: |
problem with mapconcat |
Date: |
Wed, 3 Mar 2010 12:49:17 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi there,
I am trying to build a regex with lisp, which inserts a certain string
into another string between each character, for example "abc" should
turn into "a/b/c".
With mapconcat, I think this should work:
(mapconcat 'identity (string-to-list "abc") "/")
since the description for mapconcat says
(mapconcat FUNCTION SEQUENCE SEPARATOR)
However, when I try to evaluate this in Emacs 23.1, here it throws the
following error:
Debugger entered--Lisp error: (wrong-type-argument sequencep 97)
mapconcat(identity (97 98 99) "/")
eval((mapconcat (quote identity) (string-to-list "abc") "/"))
I wonder what I am doing wrong or if there is another way to achieve
what I am trying to do.
Any help appreciated,
Christian
- problem with mapconcat,
Christian Wittern <=
- Re: problem with mapconcat, Teemu Likonen, 2010/03/03
- Re: problem with mapconcat, Thamer Mahmoud, 2010/03/03
- Re: problem with mapconcat, Thamer Mahmoud, 2010/03/03
- Re: problem with mapconcat, Christian Wittern, 2010/03/03
- Re: problem with mapconcat, Andreas Röhler, 2010/03/04
- Re: problem with mapconcat, Stephen Berman, 2010/03/04
- Re: problem with mapconcat, Andreas Röhler, 2010/03/04
Re: problem with mapconcat, Dan Davison, 2010/03/04
Re: problem with mapconcat, Kevin Rodgers, 2010/03/04