Opposite of Array Intersect
Posted: 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
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