]> git.eshelyaron.com Git - emacs.git/commit
Speed up `butlast`
authorMattias Engdegård <mattiase@acm.org>
Tue, 19 Jul 2022 09:59:37 +0000 (11:59 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 19 Jul 2022 10:09:33 +0000 (12:09 +0200)
commitc80adde1d95b1da45039e6ec39fa7dd12aab2a33
tree5c36904aa42d3ef5a9c3d0da1a7b70c34f787161
parent4b807380cf756796ce197ac58cbbbe381c157a91
Speed up `butlast`

* lisp/subr.el (butlast): Don't duplicate the removed part.
* test/lisp/subr-tests.el (subr-tests--butlast-ref, subr-butlast):
Add test.
lisp/subr.el
test/lisp/subr-tests.el