How to get the difference between two lists?
simplsol at aol.com
simplsol at aol.com
Sun Apr 3 23:21:23 EDT 2005
Ken,
Is it possible to skip the "remove" items when the comprehensive list
is built?
Paul Looney
-----Original Message-----
From: Ken Ray <kray at sonsothunder.com>
To: Use Revolution List <use-revolution at lists.runrev.com>
Sent: Sun, 03 Apr 2005 22:04:54 -0500
Subject: How to get the difference between two lists?
I've got two lists - one with is the "comprehensive" list that is
return-delimited, like:
3
5
6
7
11
14
18
21
And another list which is the list I would like to *remove* from the
comprehensive list:
5
6
11
18
Which should give me:
3
7
14
21
I can of course do a repeat loop through the small list and remove those
items from the comprehensive list, but I'm wondering if there's a
faster way
to do this. The numbers will always be sorted in ascending numeric
order,
but there may be thousands of them, so I'm not looking forward to a
repeat
loop.
Any ideas?
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list