]> git.eshelyaron.com Git - emacs.git/commit
Add `drop` as alias for `nthcdr`
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 28 Apr 2024 16:38:44 +0000 (18:38 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 29 Apr 2024 19:48:06 +0000 (21:48 +0200)
commit346aa8721ef405df343a5de9f4a754fdf262efab
treea9c1557e8c0885742c447ebbf5e1eef0c7a44af9
parentabdb802483042ca6c913cc2b5cddfff79082b08f
Add `drop` as alias for `nthcdr`

It's a common name for this function and symmetric with respect to
`take`.  It's also a lot less awkward to type and say.

* lisp/subr.el (drop): New alias.
* doc/lispref/lists.texi (List Elements): Document.  Mention the
equation tying `take` and `drop` together.
* etc/NEWS: Announce.

(cherry picked from commit 8718a7c7062eb562e2fda0dee5f7bfddb0861f1d)
doc/lispref/lists.texi
etc/NEWS
lisp/subr.el