Menu

#5 Need an Array module for common array functions

open
5
2006-03-14
2006-03-14
No

This should be analogous to the List module, and provide such useful
things as folding, mapping, and etc.

-e

Discussion

  • Erick Tryzelaar

    Erick Tryzelaar - 2006-03-14

    Logged In: YES
    user_id=41692

    slicing would also be useful, though we'd have to figure out if we want a slice to
    be a new array, or just a modifiable view into the array.

     
  • John Skaller

    John Skaller - 2006-03-14

    Logged In: YES
    user_id=5394

    Felix supports slicing syntax already, same as Python:

    a.[first to last]

    only using 'to' instead of ':', this is already used by the
    string module. The associated function is called 'substr'.
    It should return a new array for parameter value, and alias
    a subarray if parameter is lvalue (same as C++ would do).

    RTL already contains the required routine to convert
    indicies into normalised 'start, length' format.

     
  • John Skaller

    John Skaller - 2006-03-14
    • assigned_to: nobody --> idadesub
     

Log in to post a comment.