unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Generic sequences in seq.el
Date: Mon, 7 Jan 2019 23:12:13 -0500	[thread overview]
Message-ID: <CAO0xp5wGoVTLxZXHn68UXABCtibCPeekBCzj=Mj4DSbcKJOMaQ@mail.gmail.com> (raw)
In-Reply-To: <jwvmuowuxc0.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

You are right. I can implement my own
method to return objects that are not vector, string or list.

Still, it would be convenient to have a function
that can destructively modify a sequence. What is
the reason to not have one?

Yuan

On Sun, Dec 23, 2018 at 9:34 AM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> >>   (seq-concatenate 'list (seq-subseq seq 0 n)
> >>                          (list element)
> >>                          (seq-subseq seq n))
> >
> > That returns a list, not the sequence.
>
> I'm not sure which sequence is "the" sequence, but a list is
> definitely a sequence.
>
>
>         Stefan
>

[-- Attachment #2: Type: text/html, Size: 1623 bytes --]

  reply	other threads:[~2019-01-08  4:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-21 11:42 Generic sequences in seq.el Yuan Fu
2018-12-21 14:24 ` Stefan Monnier
2018-12-23  2:04   ` Yuan Fu
2018-12-23 14:34     ` Stefan Monnier
2019-01-08  4:12       ` Yuan Fu [this message]
2019-01-08 15:01         ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO0xp5wGoVTLxZXHn68UXABCtibCPeekBCzj=Mj4DSbcKJOMaQ@mail.gmail.com' \
    --to=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).