From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: concat with separators ? Date: Wed, 24 May 2017 14:21:26 +0000 Message-ID: References: <23AEA0E0-C320-4DAD-99AB-95A202FF07AC@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11403738733405055045d242" X-Trace: blaine.gmane.org 1495635869 3514 195.159.176.226 (24 May 2017 14:24:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 May 2017 14:24:29 +0000 (UTC) To: Jean-Christophe Helary , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 24 16:24:24 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 1dDXD4-0000i3-6W for ged-emacs-devel@m.gmane.org; Wed, 24 May 2017 16:24:22 +0200 Original-Received: from localhost ([::1]:55201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDXD9-0007sW-LW for ged-emacs-devel@m.gmane.org; Wed, 24 May 2017 10:24:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDXAR-0006Jr-UO for emacs-devel@gnu.org; Wed, 24 May 2017 10:21:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDXAQ-0004Ri-Vr for emacs-devel@gnu.org; Wed, 24 May 2017 10:21:39 -0400 Original-Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDXAQ-0004Np-NM for emacs-devel@gnu.org; Wed, 24 May 2017 10:21:38 -0400 Original-Received: by mail-lf0-x231.google.com with SMTP id 99so68299227lfu.1 for ; Wed, 24 May 2017 07:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=znLnag/fh7R43uOWDxqL+D7XnhDF39c672wAf9yvsBY=; b=MMatv7nDDJo8SJDd3c9QbO2VhrgiAEBJsPJdPIflBwGlmXVxam8OzYJNzj6HkRZEhA wcR7ExyUoBT2LEdVf6p5eVg2zsGtEaQamBkSIK7W3fpMzncbHIzHOgLhmgn6TmDuIkRw aQidZDH1xkDL47KNJEyOOF0ehHK3IF++gv9MBEN4jUwKobOzOoqfqu2HCyqUCdbUkGV+ 3GX2F3slJ0yduGSd7FuRe4WCrjvHIcAXR1t7sNFq6pwIEHWsw6Lnkw2oDH0rw+HmaXr6 4S5e2tFm1xP7Tj+l0jJZAcG4eAR3yJPoUyWj/BwDY/ceQivMF6BU4fBKIAAzV7fRwO7z PllA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=znLnag/fh7R43uOWDxqL+D7XnhDF39c672wAf9yvsBY=; b=lIIemKSuG1hF9nUzwJETxAnRokKIgGu2KvREX11TIrI9C6PJwuUsf6RAP0Em3Aadi0 ELBe++RjxBLXURuzo2BRjynaUieIUwttUfIH3K7/Fx6QZBdZHR2djaK/J7VdVYktFUaI ZBd0gBFXn8CKCHV2j2UzqA2ch+a0wf8+SI5E6eIeIrpJ1XLc5ldeKYxpQL7r9wqSjzzX bbUeRn3I0GQHuCIj3YxpR/LYWJGkwlbfsNfvfIMmpYxJcV0xPUTlqNXPiPqWT8/2QRUd BWb/K6QFw449vPjjl60Ct3wfKpthN2vlGVNMdJRPIwoAy9ZAqtSvsgaO3R9ZSP4DxL0L gXUg== X-Gm-Message-State: AODbwcBy55AOzOAjk9vmELH99DBT4px6/+QeEbfVAKT6+lEGj2ciGyqp Pkq8kQmFt2SOcydJBHdDJYgGjEdH1w== X-Received: by 10.25.150.65 with SMTP id y62mr8690231lfd.167.1495635697282; Wed, 24 May 2017 07:21:37 -0700 (PDT) In-Reply-To: <23AEA0E0-C320-4DAD-99AB-95A202FF07AC@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::231 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:215172 Archived-At: --001a11403738733405055045d242 Content-Type: text/plain; charset="UTF-8" On Wed, May 24, 2017 at 10:19 AM Jean-Christophe Helary < jean.christophe.helary@gmail.com> 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" -- Kaushal Modi --001a11403738733405055045d242 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, May 24= , 2017 at 10:19 AM Jean-Christophe Helary <jean.christophe.helary@gmail.com> wrote:
<= /div>
I just realized today that concat did n= ot come with optional separators (unlike mapconcat). Is there a reason for = that ?

I just using mapconcat when I fe= el that need:

Example:

(m= apconcat #'identity '("a" "b" "c") &q= uot;|") =C2=A0=3D> "a|b|c"
--

Kau= shal Modi

--001a11403738733405055045d242--