🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #719

append bug

#719
From: Daniel R. Grayson
Date: Wed, 26 Aug 1992 14:49
19 lines
991 bytes
I don't think this behavior

	(append "aaaa" "bbbb" "cccc")
	(97 97 97 97 98 98 98 98 . "cccc")

can be deduced from this documentation:

  append:
  Concatenate arguments and make the result a list.
  The result is a list whose elements are the elements of all the arguments.
  Each argument may be a list, vector or string.

I would have thought the answer would be

	(97 97 97 97 98 98 98 98 99 99 99 99)

I don't know whether it is the documentation which is wrong or the code.

Compare this function and its documentation to that of "concat"!
Technical Details
Message-ID: <9208261449.AA02643@uiucmath.math.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uiucmath.math.uiuc.edu!dan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uiucmath.math.uiuc.edu!dan
From: dan@uiucmath.math.uiuc.edu (Daniel R. Grayson)
Subject: append bug
Message-ID: <9208261449.AA02643@uiucmath.math.uiuc.edu>
Sender: gnulists@ai.mit.edu
Reply-To: dan@math.uiuc.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 26 Aug 1992 14:49:23 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 20