Help with an algorithm...
Dar Scott Consulting
dsc at swcp.com
Mon Aug 5 18:08:15 EDT 2019
I know this does not attend to the question, but my feelings are like this: if one has control, go back and use arrays from the start.
Now, to your comments on robustness in parsing the files. I suppose any whitespace at the start of a line could be considered a child. Also, it is an error if the first line is a child.
> On Aug 5, 2019, at 3:59 PM, dunbarxx via use-livecode <use-livecode at lists.runrev.com> wrote:
> Hmmm. I had mentioned earlier:
> "You cannot just find matching lines between the two lists, because some
> AND some parents may be present in both...
> The discussion has focused on array lore, and that is fine, but are we all
> in agreement that the main task is to isolate the parents, regardless of
> whether the names of those parents might be duplicated? I mention this
> because everything depends on the reliability of those spaces. The parsing
> of parent "groups", in one way or another, is essential.
> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode