#800 upper case vs. lower case

closed
nobody
Lisp Core (471)
5
2012-12-04
2005-10-10
No

Can someone explain?

(%i1) load(flatten);
(%o1)
F:/Programme/Maxima-5.9.1/share/maxima/5.9.1/src/flatten.lisp
(%i2) flatten([[1,2],[3,4]]);
(%o2) flatten([[1, 2], [3, 4]])
(%i3) Flatten([[1,2],[3,4]]);
(%o3) [1, 2, 3, 4]

Volker van Nek

Discussion

  • Barton Willis

    Barton Willis - 2005-10-11

    Logged In: YES
    user_id=895922

    I'll let someone else explain what is going on. To avoid this
    problem, use load("flatten") instead of load(flatten). In
    Maxima 5.9.2, you shouldn't have to load a file to use 'flatten'

    (%i1) load("flatten");
    (%o1)
    C:/PROGRA~1/MAXIMA~1.1/share/maxima/5.9.1/src/flatten.li
    sp
    (%i2) flatten([[2,3],[5,6]]);
    (%o2) [2,3,5,6]

    Barton

     
  • Robert Dodier

    Robert Dodier - 2005-10-11
    • status: open --> closed
     
  • Robert Dodier

    Robert Dodier - 2005-10-11

    Logged In: YES
    user_id=501686

    flatten is now built in Maxima. It is not necessary to call
    load(flatten) nor load("flatten"), and flatten (something),
    writing flatten in lowercase, calls the flatten function.

    In 5.9.1.9rc4,

    (%i2) flatten ([[1,2],[3,4]]);
    (%o2) [1, 2, 3, 4]

    Closing this report as fixed.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks