[SOLVED] DSRN (dog slow roman numerals)
|
06-16-2014, 03:42 PM
Post: #50
|
|||
|
|||
RE: DSRN (dog slow roman numerals)
(06-16-2014 05:07 AM)Thomas Klemm Wrote: Not sure about that. It has indeed to do with what we pass to DOLIST. But then just returning nothing instead of an empty list is a surprize to me as well. I guess I'm just getting the sense that DOLIST is better suited for situations where there's more independence amongst the list members. In this particular case, the relationships of the list members are highly dependent on each other. Processing doesn't really need to address each and every character position; once the final string is known, processing can (and should) stop. Order and inclusion have direct/major significance to the final outcome, so any aspect of the list processing that adds complexity to those areas decreases its usefulness. Conversely, consider a situation where there's much greater independence: renaming all of the objects in a directory. A pseudo-code version might look like this: Code: Get List of Objects In that case, DOLIST would be very useful to simplify the code. That type of scenario seems much more applicable to me. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)