Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
use AppleScript version "2.4" -- OS X 10.10 (Yosemite) or later
|
||||
use framework "Foundation"
|
||||
|
||||
on symmetricDifference(a, b)
|
||||
set unionArray to (current application's class "NSArray"'s arrayWithArray:({a, b}))'s ¬
|
||||
valueForKeyPath:("@distinctUnionOfArrays.self")
|
||||
set filter to current application's class "NSPredicate"'s ¬
|
||||
predicateWithFormat_("!((self IN %@) && (self IN %@))", a, b)
|
||||
|
||||
return (unionArray's filteredArrayUsingPredicate:(filter)) as list
|
||||
end symmetricDifference
|
||||
Loading…
Add table
Add a link
Reference in a new issue