[Top][All Lists]

[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 (

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


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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]