emacs-devel
[Top][All Lists]
Advanced

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

Re: lists.texi


From: Luc Teirlinck
Subject: Re: lists.texi
Date: Sat, 18 Jun 2005 19:37:09 -0500 (CDT)

Actually, if we have to do all of that to get the correct return
value, we could quite as well use the following function, which does
get the order correct:

(defun ring-elements (ring)
  "Return a list of the elements of RING in order, newest first."
  (let (lst)
    (dotimes (var (ring-length ring))
      (push (ring-ref ring var) lst))
    (nreverse lst)))




reply via email to

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