[Top][All Lists]

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

doco srfi-1 iota

From: Kevin Ryde
Subject: doco srfi-1 iota
Date: Tue, 08 Jul 2003 07:57:24 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

        * srfi-modules.texi (SRFI-1 Constructors): In iota, reword a bit for
        clarity and add a couple of examples.

I found the formula for each element less clear than it could be, and
thought a couple of examples would be enough to illustrate what

 - Scheme Procedure: iota count [start step]
     Return a list containing COUNT numbers, starting from START and
     adding STEP each time.  The default START is 0, the default STEP
     is 1.  For example,

          (iota 6)        => (0 1 2 3 4 5)
          (iota 4 2.5 -2) => (2.5 0.5 -1.5 -3.5)

     This function takes its name from the corresponding primitive in
     the APL language.

Attachment: srfi-modules.texi.iota.diff
Description: Text document

reply via email to

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