From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thamer Mahmoud Newsgroups: gmane.emacs.help Subject: Re: problem with mapconcat Date: Wed, 03 Mar 2010 18:23:42 +0300 Message-ID: <87635d5szl.fsf@zemblan.newkuwait.org> References: <87bpf5zex5.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267629926 20046 80.91.229.12 (3 Mar 2010 15:25:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Mar 2010 15:25:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 03 16:25:22 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NmqRu-00036N-6j for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Mar 2010 16:25:22 +0100 Original-Received: from localhost ([127.0.0.1]:41055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmqRt-0004RG-Jo for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Mar 2010 10:25:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmqQn-0004Cq-Oq for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 10:24:13 -0500 Original-Received: from [140.186.70.92] (port=57384 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmqQj-0004At-5X for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 10:24:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmqQh-0000sZ-19 for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 10:24:09 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:38082) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmqQg-0000sN-BT for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 10:24:06 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NmqQd-0002Mr-2U for help-gnu-emacs@gnu.org; Wed, 03 Mar 2010 16:24:03 +0100 Original-Received: from 89.203.6.209 ([89.203.6.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Mar 2010 16:24:02 +0100 Original-Received: from thamer.mahmoud by 89.203.6.209 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Mar 2010 16:24:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 89.203.6.209 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:vWr1d5wBeO5GcPQoyRbO4Kl0l2U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72338 Archived-At: Teemu Likonen writes: > * 2010-03-03 12:49 (UTC), Christian Wittern wrote: > >> 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". > > (mapconcat #'identity (mapcar #'char-to-string "abc") "/") > > => "a/b/c" Another alternative: (mapconcat 'string (string-to-list "abc") "/") => "a/b/c"