Not sure if this is appropriate in your project/product or not, but why not just check to verify it doesn't already exist before adding it in?
if (not getPos(myList, someNumber)) then add(myList, someNumber) end if And just avoid the whole culling-out thing altogether... At 10:14 PM 6/6/02 -0500, [EMAIL PROTECTED] wrote: >Hey, after 2 hours of sleep and trying to work whilest watching Jack Black >on the MTV music awards (gotta love my job) -- I'll just bring it to the >crowd before I try to deal with this myself. > >I've got this mad nested proplist (always my style), and deep within one >of the proplist is a linearlist of keys/positions of another list as >reference (argh, so hard to explain...but basically I have a productlist, >and I have this proplist which references the productlist entries by >position). > >Well, I've got some lists that have multiple references to the >productlist; like: > >[37, 39, 38, 40, 37, 39, 38, 40, 41, 42, 43, 44] > >So is the best way of ripping these guys out -- huh think I just figured >it out just writing this. > >Grab the last one in the list and check for any repeats, and, if so, >delete that entry, then go on to the next repeat. > >Right? [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 [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
