List Commands Library for 50g
|
06-26-2017, 03:37 PM
Post: #13
|
|||
|
|||
RE: List Commands Library for 50g
(06-26-2017 05:13 AM)pier4r Wrote: Afaik lists are powerful because one can iterate them (do list, do subs) , with arrays is not the same or not? You can still use GET and PUT to access individual elements of arrays, and as Gilles mentions, converting them to a list (and back) is easy with AXL. So processing a single-dimension array isn't drastically different than a list, it just requires a bit of transformation at key points. More care is needed when dealing with matrices, as the distinction between a multi-dimensional array and a matrix is something the user (or programmer in this case) has to keep in mind. It may make perfect sense in the context of a multi-dimensional array to expect Code: [ Code: [ But of course, that's not what's going to happen if you actually execute that on a 50g. So transforming those matrices to list form could facilitate a different contextual meaning. (06-25-2017 10:46 PM)ttw Wrote: There is an extension that comes to mind. Treat a one-dimensional array as a list. This would help in writing some linear algebra programs. Of course, a list of matrices or a matrix of lists can be left to the future. Which commands (either old or new) do you see as candidates for such treatment? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)