Menu

#15 The `iota' procedure misbehaves.

closed-fixed
nobody
None
5
2002-05-05
2002-05-02
No

The manual says:

procedure: (iota n) => pair

The iota function produces a list whose elements are the
integers 0 to n-1 inclusive.

--
SISC does:

SISC (r1.4.0) - main
> (iota 4)
(0 1 2 3 4)
> (iota 10)
(0 1 2 3 4 5 6 7 8 9 10)
>

Discussion

  • Nobody/Anonymous

    Logged In: NO

    This is a bug in the manual, actually. Should be 0-n inclusive.

     
  • Scott G. Miller

    Scott G. Miller - 2002-05-02

    Logged In: YES
    user_id=25869

    Fixed in CVS. (Manual was incorrect)

     
  • Scott G. Miller

    Scott G. Miller - 2002-05-02
    • status: open --> closed-fixed
     
  • Scott G. Miller

    Scott G. Miller - 2002-05-02
    • status: closed-fixed --> open-accepted
     
  • Scott G. Miller

    Scott G. Miller - 2002-05-02

    Logged In: YES
    user_id=25869

    Sorry, I was wrong again. iota should be 0 - n-1, unfixing
    in Manual and fixing the code.

     
  • Matthias Radestock

    • status: open-accepted --> closed-accepted
     
  • Matthias Radestock

    Logged In: YES
    user_id=110070

    fixed in cvs.
    0..n-1.

     
  • Matthias Radestock

    • status: closed-accepted --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB