From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: concat with separators ? Date: Wed, 24 May 2017 10:34:48 -0400 Message-ID: <783c09c3-60df-e011-6db4-f8560c00cf92@gmail.com> References: <23AEA0E0-C320-4DAD-99AB-95A202FF07AC@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1495636625 4117 195.159.176.226 (24 May 2017 14:37:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 May 2017 14:37:05 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 24 16:36:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDXPF-0000v9-WA for ged-emacs-devel@m.gmane.org; Wed, 24 May 2017 16:36:58 +0200 Original-Received: from localhost ([::1]:55268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDXPL-0005tX-1n for ged-emacs-devel@m.gmane.org; Wed, 24 May 2017 10:37:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDXNG-0004yw-89 for emacs-devel@gnu.org; Wed, 24 May 2017 10:34:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDXNC-0006go-Ad for emacs-devel@gnu.org; Wed, 24 May 2017 10:34:54 -0400 Original-Received: from mail-qt0-x230.google.com ([2607:f8b0:400d:c0d::230]:36448) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDXNC-0006gU-5X for emacs-devel@gnu.org; Wed, 24 May 2017 10:34:50 -0400 Original-Received: by mail-qt0-x230.google.com with SMTP id f55so156649919qta.3 for ; Wed, 24 May 2017 07:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=RGnNTB6Y/26R51MnMI1MhGu0cVGpI4wNxl+v+RfGxKE=; b=pWx2qvbdl3SeeJ/wg2UKIV9y2gaBizFnrMnCXhGjscieT2YETbvg6kamfVMEaswOxH Kvn6DS2mbFfE7GJkK19/i4j9okUE4yMGvfb3SOx/QV5dhCts0JWx3YrB/eeuEZF7fQ0/ ONswXczQrRHMPXOW9Qb0tInrKUDO0WY0g0BtSO93T36apgAjC2CEWZ+ebQuQXCHUVoMo b55UFBtgohkmsJnspVUdfAERBJ7A3tV7sX6Spy3+j42HDtsRGiLJi1mksSYqcQlyRGbc PEMiABApYr+fRXqtUfFHrNQRe3mq2PYrnUSki2m4e5C8aMFDm6cZgvxCHmAv5qysxb09 RB4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RGnNTB6Y/26R51MnMI1MhGu0cVGpI4wNxl+v+RfGxKE=; b=r6Wm8LhbiZHHV64ArJh3qVtv4QEN10W/kEGypmewp/whYZBvGA0pYCCJSMUoa2CCNS zbB17kc7MlYTg6kMunL3xXnN5o9aqfVGUVfKk/PSqLc5SxJflj7eBwCPU9eUCYS0kbZl BjePNtz/00mvV9WJ3MtzhrQCcMZhtT5mVBUtQpeonlXgALChNhouADAUxfBKNTcC2xQ9 EjFPUfSgraS1xxs1O4IIxF/F7Wknb91e3o2HbGOle0fp/lOPgqfudtl8eZAE6KjufvN+ /AkEd8XgzDy+AQ6U47lABS365v2mC5VkiY9oxnAt1I90H6W2P91fCu2Npi2Ryc8xq9xO b/bg== X-Gm-Message-State: AODbwcB1kPk55oOh7Et0HHN3tWuWhh7PdSr+nK7FvYpmJorUeTn8qrAa Sn+1ZcVc9yBEl/MJHf0= X-Received: by 10.200.3.103 with SMTP id w39mr33570162qtg.230.1495636489322; Wed, 24 May 2017 07:34:49 -0700 (PDT) Original-Received: from [18.111.28.55] (dhcp-18-111-28-55.dyn.mit.edu. [18.111.28.55]) by smtp.gmail.com with ESMTPSA id s190sm2689866qkh.57.2017.05.24.07.34.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 07:34:48 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215173 Archived-At: On 2017-05-24 10:21, Kaushal Modi wrote: > On Wed, May 24, 2017 at 10:19 AM Jean-Christophe Helary > wrote: > > I just realized today that concat did not come with optional separators (unlike mapconcat). Is there a reason for that ? > > > I just using mapconcat when I feel that need: > > Example: > > (mapconcat #'identity '("a" "b" "c") "|") => "a|b|c" That's roughly the definition of string-join in subr-x: (defsubst string-join (strings &optional separator) "Join all STRINGS using SEPARATOR." (mapconcat 'identity strings separator))