[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] sequence manipulation functions
From: |
Nicolas Petton |
Subject: |
Re: [PATCH] sequence manipulation functions |
Date: |
Wed, 12 Nov 2014 20:30:13 +0100 |
User-agent: |
mu4e 0.9.9.6pre3; emacs 24.3.1 |
Bozhidar Batsov <address@hidden> writes:
> I don’t see here common sequence functions like take-while,
> drop-while, remove (the opposite of filter), mapcat, flatten, etc.
There are indeed missing functions. As I initially planned to add these
functions without any prefix and propose the change in subr.el, I didn't
want to add too many of them at once, but now I can definitely add the
missing ones.
seq-take and seq-drop were rejected though, so I don't think take-while
or drop-while make much sense anymore. Or?
> Anyways, for the prefixing to make sense functions like mapcar, mapc
> and friends should be aliased as well (ideally with names like
> `seq-map`, `sea-each`, etc).
Yes, I did alias them. I aliased mapc to seq-do though.
>
> Another thing to consider - if you want the library to be adopted
> quickly it might make sense to distribute it as a ELPA package for
> older Emacsen.
That's a very good point!
Nico
>
> —
> Cheers,
> Bozhidar
>
> On November 12, 2014 at 19:50:16, Nicolas Petton (address@hidden) wrote:
>
>
> Stefan Monnier <address@hidden> writes:
>
>>> Fair enough. One question though, if sequences.el is not preloaded, then
>>> I guess these functions should not be documented in the manual?
>>
>> Why not? Just state that they need a (require 'seq) before you can
>> use them.
>
> Should I put it in the Elisp manual in sequences.texi?
>
> Nicolas
--
Nicolas Petton
http://nicolas-petton.fr
- Re: sequence manipulation functions, (continued)
- Re: sequence manipulation functions, Sebastien Vauban, 2014/11/05
- Re: sequence manipulation functions, Stefan Monnier, 2014/11/05
- [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/07
- Re: [PATCH] sequence manipulation functions, Daniel Colascione, 2014/11/07
- Re: [PATCH] sequence manipulation functions, Stefan Monnier, 2014/11/10
- Re: [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/10
- Re: [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/10
- Re: [PATCH] sequence manipulation functions, Stefan Monnier, 2014/11/10
- Re: [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/12
- Re: [PATCH] sequence manipulation functions, Bozhidar Batsov, 2014/11/12
- Re: [PATCH] sequence manipulation functions,
Nicolas Petton <=
- Re: [PATCH] sequence manipulation functions, Stefan Monnier, 2014/11/12
- Re: [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/12
- Re: [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/12
- Re: [PATCH] sequence manipulation functions, Nic Ferrier, 2014/11/12
- Re: [PATCH] sequence manipulation functions, Leo Liu, 2014/11/12
- RE: [PATCH] sequence manipulation functions, Drew Adams, 2014/11/13
- Re: [PATCH] sequence manipulation functions, Leo Liu, 2014/11/14
- Re: [PATCH] sequence manipulation functions, Bozhidar Batsov, 2014/11/16
- Re: [PATCH] sequence manipulation functions, Nicolas Petton, 2014/11/16
- RE: [PATCH] sequence manipulation functions, Drew Adams, 2014/11/16