[Date Index] [Thread Index] [Author Index]
Re: List element replacement.
Robert G. Wilson v wrote: > Et al, > > HELP, I tried this once before but what I received back I could not make it work. > Therefore I am following the adage that if at first you do not succeed then wait > awhile, rethink, restate and resubmit. > > I have three lists of objects, sorted but not unioned, that is there are elements > which will be repeated. Let us label them 'initial' list, 'compare' list, and > 'replace' list. If all of the elements in the 'compare' list, including repeats, > are in the 'initial' list, then remove those elements and put in the elements from > the 'replace' list. > > Thank you in advance, > > Bob. > Are your lists meant to be of the same length - I presume not - but in that case how do I know which element of the replace list to use? I suggest you post an example of your three lists and the result that you would like to obtain. David Bailey