Hi, all,
D8.5.1 / XPPro

I'm looking for a fast way of comparing two string values in two lists.
Each list is a prop list wrapped inside a linear list.
The slow way is to step through each value in one list, comparing it
to values in the second list. But this is so slow, cumbersome, in
inelegant. Example:
  repeat with x in firstList
    repeat with n in secondlist
      if the name of x = the name of n then
        do stuff here...
        exit repeat
  etc.

It would be sweet if I could tell ask the SecondList right off the
bat, "do you have this value in your list?" without using a repeat
loop, then compare it to the value in firstList.  I've tried getOne,
getPos, and getOutOfTown, but nothing works the way I expected on a
proplist inside a linear list. Must I remove each proplist one-by-one,
use getOne on the proplist, then continue on? Gads. That still
involves a repeat loop.

What's the magic I'm missing?

TIA,
John
-- 
NOTE: This email is a private communication between the author and the
addressee. It may not be reproduced or published without the author's
express permission. Constitutional privacy was first established in
the 1967 United States Supreme Court in Katz v. United States. Katz
established a two-part test to determine the reasonableness of one's
expectation of privacy. First, the person must have an actual
expectation of privacy; and second, that expectation must be
objectively reasonable. In other words, society must also recognize
the expectation as reasonable.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to