New on Elpa and in Emacs 25.1: seq.el23 Mar 2015, by Artur Malabarba.
New in 25.1 post series
- New in Emacs 25.1: Query-replace history is enhanced.
- New in Emacs 25.1: Better Rectangles
- New on Elpa and in Emacs 25.1: let-alist
- New in Emacs 25.1: Easily install multifile package from a directory
- New in Emacs 25.1: comment-line
- New on Elpa and in Emacs 25.1: seq.el
- New in Emacs 25.1: Have prettify-symbols-mode reveal the symbol at point
- New in Emacs 25.1: Round quotes in Help buffers
- New in Emacs 25.1: Easily search for non-ASCII characters
- New in Emacs 25.1: EWW improvements
- New in Emacs 25.1: map.el library
- New in Emacs 25.1: More flow control macros
Thanks to Nicolas Petton, Emacs is getting a new built-in sequence library in 25.1, and it’s already available on GNU Elpa for everyone. There’s not much to be said about this besides the obvious “it’s about time”.
The popularity of dash.el speaks volumes about the need for this feature.
Combined with the recent inclusion of
when-let, and the threading
macros into Emacs core, this should eventually allow most packages to phase out
that extra dependency. Not that there’s anything wrong with
dash, of course,
but it’s nice to retire an external dependency if a built-in one becomes
Still, in the field of sequence-processing, there are some noteworthy differences that may lead you to prefer one over the other.
seqprovides a unified interface for lists, vectors, and strings (i.e., sequences).
- Some functions take arguments in a different order, such as
(-take n list)versus
(seq-take list n).
Are there any operations you feel ought to be added to this arsenal? What about other utility libraries that really should be built-in?
This post used to say that “
dash still covers a range of operations that
doesn’t”. However, Nico seems very intent on proving me wrong, and we now have