in reply to Re: Re: Unique Array Data
in thread Unique Array Data

My goal is to keep any data from 'each' Topology entry forward that is unique from the one prior, and if the element directly after the Topology entry is unique from the one prior, I need to retain an entry for Topology.

Does this mean that you're considering each Topology "block" pairwise, and that "uniqueness" only applies to the previous pair? If so, why are you discarding some (but not all) Topology entries? Or are you discarding every alternate Topology (by way of alternation)?

Replies are listed 'Best First'.
Re: Re: Re: Re: Unique Array Data
by Anonymous Monk on Mar 07, 2002 at 11:53 UTC
    I am considering the data that directly proceeds Topology as Unique ie(IPClassA, and IPClassB,) For example, If I had two sequences that contained Topology IPClassA, and the third element of each sequence was different I would look at that element.
Re: Re: Re: Re: Unique Array Data
by The_Rev (Acolyte) on Mar 07, 2002 at 12:28 UTC
    Uniqueness would be anything that starts with a capital letter from Topology to the next Topology and if the node differs from the previous one. I would like to retain the one prior, for example if I have:
    Topology IPClassA subnet_address=0 Topology IPClassA Device model_name=1 Topology IPClassB Device model_name=2 Topology IPClassB Device
    I would like to end up with:
    Topology IPClassA subnet_address=0 Device model_name=1 Topology IPClassB Device model_name=2 Device