GNU bug report logs - #21782
25.0.50; New functions nfront/front

Previous Next

Package: emacs;

Reported by: Tino Calancha <f92capac <at> gmail.com>

Date: Thu, 29 Oct 2015 09:55:01 UTC

Severity: wishlist

Found in version 25.0.50

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#21782: closed (25.0.50; New functions nfront/front)
Date: Thu, 18 May 2017 04:10:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 18 May 2017 13:08:57 +0900
with message-id <87h90iiz6u.fsf <at> calancha-pc>
and subject line Re: bug#21782: 25.0.50; New functions nfront/front
has caused the debbugs.gnu.org bug report #21782,
regarding 25.0.50; New functions nfront/front
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
21782: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21782
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tino Calancha <f92capac <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; New functions nfront/front
Date: Thu, 29 Oct 2015 18:57:59 +0900 (JST)
[Message part 3 (text/plain, inline)]
In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
 of 2015-10-29
Repository revision: 07830c3d5c801d7d55622215b46ba692c6afa1d2


I found very useful to define one function returning:
(nreverse (last (nreverse list) N))
(for a given list and integer N)

Maybe its already defined somewhere, but i cannot find it.

Examples of the new function:
(let ((ltest '( 1 2 3 4 5 6)))
  (nfront ltest 3))
(1 2 3)

(let ((ltest '( 1 2 3 4 5 6)))
  (nfront ltest 1))
(1)

(let ((ltest '( 1 2 3 4 5 6)))
  (nfront ltest 20))
(1 2 3 4 5 6)

(let ((ltest '( 1 2 3 4 5 6)))
  (nfront ltest))
(1 2 3 4 5 6)
[subr.patch (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Tino Calancha <tino.calancha <at> gmail.com>
To: 21782-done <at> debbugs.gnu.org
Subject: Re: bug#21782: 25.0.50; New functions nfront/front
Date: Thu, 18 May 2017 13:08:57 +0900
Tino Calancha <f92capac <at> gmail.com> writes:


> I found very useful to define one function returning:
> (nreverse (last (nreverse list) N))
> (for a given list and integer N)
>
> Maybe its already defined somewhere, but i cannot find it.
seq-take does the same thing, so i am closing this report.


This bug report was last modified 8 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.