From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: request for a new function, say, `sequence' Date: Tue, 25 Mar 2003 18:40:23 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303260040.SAA26393@eel.dms.auburn.edu> References: <200303250015.JAA06592@etlken.m17n.org> <200303250050.JAA06631@etlken.m17n.org> <200303250057.h2P0vBj6016367@rum.cs.yale.edu> <200303250125.KAA06703@etlken.m17n.org> <32627.1048557446@theforce.Stanford.EDU> <200303250208.LAA06802@etlken.m17n.org> <1191.1048560083@theforce.Stanford.EDU> <200303250446.NAA06974@etlken.m17n.org> <200303251527.h2PFR0lO018653@rum.cs.yale.edu> <20030326001145.GA16603@gnu.org> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048639881 5239 80.91.224.249 (26 Mar 2003 00:51:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2003 00:51:21 +0000 (UTC) Cc: handa@m17n.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 26 01:51:19 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18xz8R-0001MK-00 for ; Wed, 26 Mar 2003 01:51:19 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18xz9a-00034W-00 for ; Wed, 26 Mar 2003 01:52:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xz8I-00045C-00 for emacs-devel@quimby.gnus.org; Tue, 25 Mar 2003 19:51:10 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18xz4m-00038f-00 for emacs-devel@gnu.org; Tue, 25 Mar 2003 19:47:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18xyy6-00016f-00 for emacs-devel@gnu.org; Tue, 25 Mar 2003 19:40:41 -0500 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xyx0-0000mb-00; Tue, 25 Mar 2003 19:39:30 -0500 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) h2Q0dQB00300; Tue, 25 Mar 2003 18:39:26 -0600 (CST) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id SAA26393; Tue, 25 Mar 2003 18:40:23 -0600 (CST) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: miles@gnu.org In-reply-to: <20030326001145.GA16603@gnu.org> (message from Miles Bader on Tue, 25 Mar 2003 19:11:45 -0500) Original-cc: emacs-devel@gnu.org Original-cc: monnier+gnu/emacs@rum.cs.yale.edu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12616 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12616 Miles Bader wrote: BTW, pale blue-green: I keep wanting to suggest that this function be called `iota', after the APL function with similar functionality. I think various common-lisp/schemes versions of this function use this name (though I seem to recall that the function signature is usually (iota COUNT &optional START INTERVAL) I do not believe that Common Lisp has this function. Does Guile? You did not describe the actual behavior. Guess: (iota 3) returns (0 1 2) and: (iota 3 7 -5) returns (7 2 -3) To get the effect of (range a b): (iota (1+ (- b a)) a 1) Correct? Probably not what Ken'ichi wants. Sincerely, Luc.