Opposite of Array Intersect

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

Opposite of Array Intersect

Post by deeverd » Thu Mar 13, 2008 4:08 pm

I make great use out of the "intersect" and "union" commands with arrays, but I would also make equally great use of a function that would do the opposite of an "intersect." In other words, I would like to see a function that doesn't kick out the words not found when a databaseArray intersects a newlyMadeArray, but instead where the databaseArray intersects the newlyMadeArray, all the words that are common to both arrays would be deleted in the newlyMadeArray... leaving only the words that were unique to the newlyMadeArray.

To give just one example of its usage, I recently made a "Vocabulary List Maker" for teachers to import text. It uses a huge database of all the tens of thousands of most common words in the English language, which it filters out of the imported text, leaving only the uncommon words. In this way, teachers can immediately see which words in a text most likely need to be defined for their students, hence, it creates a vocabulary list.

Having the opposite of an intersect array would greatly speed up such functions.

Cheers, deeverd

Post Reply