unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: doc strings of reverse and nreverse.
Date: Wed, 19 Nov 2003 22:10:59 -0600 (CST)	[thread overview]
Message-ID: <200311200410.hAK4Axt07727@raven.dms.auburn.edu> (raw)

The doc strings of `reverse' and `nreverse' are strange and cryptic.

Do C-h f reverse RET

Result:

reverse is a built-in function.
(reverse LIST)

Reverse LIST, copying.  Returns the beginning of the reversed list.
See also the function `nreverse', which is used more often.

My comments:

The "beginning" of the reversed list?  How much of the beginning?
Whenever I tried `reverse' it always returned the entire reversed
list, like the Common Lisp function of the same name.  Does it _ever_
do anything else?  If yes, when and what is the "else"?  If not, what
does that strange sentence mean?  If it ever does anything else, then
there still is a bug in the new version of number-sequence I
submitted, but there would be bugs all over Emacs.

Same questions for `nreverse':

reverse is a built-in function.
(nreverse LIST)

Reverse LIST by modifying cdr pointers.
Returns the beginning of the reversed list.

Sincerely,

Luc.

             reply	other threads:[~2003-11-20  4:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20  4:10 Luc Teirlinck [this message]
2003-11-20  4:29 ` doc strings of reverse and nreverse Luc Teirlinck
2003-11-20 10:42 ` Kim F. Storm
2003-11-21  5:12   ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311200410.hAK4Axt07727@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).