bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56521: Add 'take' list operation [PATCH]


From: Mattias Engdegård
Subject: bug#56521: Add 'take' list operation [PATCH]
Date: Sun, 17 Jul 2022 18:00:17 +0200

Not much argument here; pushed to master. A couple of notes:

I went for the C implementation of `ntake` because I already had the code, and 
because an elisp implementation would be slower than `take` for short lists or 
small N, and there very point of `ntake` is speed.

`nthcdr` has some elaborate code for handling bignum arguments which makes some 
kind of sense since it's defined as an iteration of `cdr`. Currently, `take` 
and `ntake` require fixnums because bignums didn't seem to be worth the trouble.

Before closing the bug, I'll make the new code pay their way by adding some 
calls. `seq-take` is first in line for a makeover.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]