From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: concat with separators ?
Date: Wed, 24 May 2017 10:34:48 -0400 [thread overview]
Message-ID: <783c09c3-60df-e011-6db4-f8560c00cf92@gmail.com> (raw)
In-Reply-To: <CAFyQvY3kb4D_hwRG6Oud+bYZjOBJYvWJtqeNC_iLV5=3Cbbrag@mail.gmail.com>
On 2017-05-24 10:21, Kaushal Modi wrote:
> On Wed, May 24, 2017 at 10:19 AM Jean-Christophe Helary <jean.christophe.helary@gmail.com <mailto: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"
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))
next prev parent reply other threads:[~2017-05-24 14:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 14:18 concat with separators ? Jean-Christophe Helary
2017-05-24 14:21 ` Kaushal Modi
2017-05-24 14:34 ` Clément Pit-Claudel [this message]
2017-05-28 5:33 ` Jean-Christophe Helary
2017-05-28 10:52 ` Tino Calancha
2017-05-28 11:02 ` Jean-Christophe Helary
2017-05-28 11:27 ` Tino Calancha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=783c09c3-60df-e011-6db4-f8560c00cf92@gmail.com \
--to=cpitclaudel@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.