Post Reply 
Programming puzzles: processing lists!
04-25-2017, 01:11 AM
Post: #33
RE: Programming puzzles: processing lists!
(04-24-2017 11:50 PM)DavidM Wrote:  Syntax-wise, it appears that it could be used in the same situations where DOLIST (or DOSUBS) would be used with a single list and n=1. I don't see anything documented about it using NSUB, though, so a subprogram that needs to differentiate its process for specific iterations wouldn't be able to take advantage of that. So I suppose it is more like DOLIST than DOSUBS in that regard.

Would be interesting to compare the performance for a couple of these (where it is a good fit, of course).

The commands are quite different:
DOLIST works with one element from several lists.
DOSUBS works with several elements within the same list
MAP works with a single element of a single list, but fully recursive (goes inside lists of lists and preserves the structure).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - Claudio L. - 04-25-2017 01:11 AM



User(s) browsing this thread: 1 Guest(s)