🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98336

Documentation error for elt

#98336
From: Per Cederqvist
Date: Fri, 16 Aug 1991 03:36
27 lines
1416 bytes
GNU Emacs 18.57.3 of Sat Jun  8 1991 on lysator (berkeley-unix)

The info node "(elisp)Sequence Functions" states that:

=======================================
 * Function: elt SEQUENCE INDEX

     This function returns the element of SEQUENCE indexed by INDEX. 
     Legitimate values of INDEX are integers ranging from 0 up to one
     less than the length of SEQUENCE; other values produce an
     `args-out-of-range' error.
=======================================

I don't get an error message when SEQUENCE is a list, no matter how
big INDEX is:

(elt '(1 2 3) 17) 
     => nil

(elt nil 0)
     => nil

Either the info file or the actual behaviour of elt is wrong.
----
Per Cederqvist, Lysator Computer Club, University of Linkoping, Sweden
Email: ceder@lysator.liu.se	
Phone: +46 13 26 09 17		 "CVS - Check It Out!"
Technical Details
Message-ID: <9108152336.AA15022@lysator.liu.se>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!lysator.liu.se!ceder

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,7f350ab4964f3226,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-08-15 20:36:43 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!lysator.liu.se!ceder
From: ceder@lysator.liu.se (Per Cederqvist)
Newsgroups: gnu.emacs.bug
Subject: Documentation error for elt
Message-ID: <9108152336.AA15022@lysator.liu.se>
Date: 16 Aug 91 03:36:43 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 27
Approved: bug-gnu-emacs@prep.ai.mit.edu