How to get the difference between two lists?

Frank D. Engel, Jr. fde101 at fjrhome.net
Mon Apr 4 17:57:50 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

put sourceArray into sectArray
intersect sectArray with exceptArray

repeat for each line k in the keys of sectArray
   delete variable sourceArray[k]
end repeat


On Apr 4, 2005, at 5:46 PM, David Vaughan wrote:

>
> On 05/04/2005, at 0:38, Ken Ray <kray at sonsothunder.com> wrote:
>>
>> On 4/4/05 1:39 AM, "Monte Goulding" <monte at sweattechnologies.com> 
>> wrote:
>>
>>>> Ken (and all the other ingenious people), you have something 
>>>> against the
>>>> "intersect" command?
>>>>
>>>> Convert both lists to arrays and intersect them leaving only the
>>>> non-common elements.
>>>
>>> My understanding is the intersect command creates an array with only 
>>> common
>>> keys. If there was an inverse of the command it would be perfect as 
>>> you say.
>>
>> I added this as an enhancement request to Bugzilla (Bug #2763 if 
>> anyone
>> wants to vote on it).
>
> I'll vote for it Ken. While I am at it I might vote that I do not 
> reverse-read documentation as well ;-)
>
> cheers
> David
>>
>> Ken Ray
>> Sons of Thunder Software
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCUbhe7aqtWrR9cZoRAnLrAKCIW7F2FUuw1nlySpVd5IOdRF0C7ACgiWdm
yl4goDLYuppb5TVh7V72aX0=
=JJJw
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list