>> looks to me like a long way around a simple <cfset list1 = list2>... :)

You're not wrong but I think I see there could be good reason  for
listing what needs deleting and what adding.

Personally, I would use Arrays - can been done really simply using
underlying java methods of arrays:

arr1 = ListToArray(list1);
arr2 = ListToArray(list2);

toAdd = arr2.removeAll(arr1);
toDelete = arr1.removeAll(arr2);

That's it!

Dominic

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316011
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to