Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
on symmetricDifference(a, b)
|
||||
set output to {}
|
||||
repeat 2 times
|
||||
repeat with thisItem in a
|
||||
set thisItem to thisItem's contents
|
||||
tell {thisItem}
|
||||
if (not ((it is in b) or (it is in output))) then set end of output to thisItem
|
||||
end tell
|
||||
end repeat
|
||||
set {a, b} to {b, a}
|
||||
end repeat
|
||||
|
||||
return output
|
||||
end symmetricDifference
|
||||
|
||||
on task()
|
||||
set a to {"John", "Serena", "Bob", "Mary", "Serena"}
|
||||
set b to {"Jim", "Mary", "John", "Jim", "Bob"}
|
||||
return symmetricDifference(a, b)
|
||||
end task
|
||||
|
||||
task()
|
||||
Loading…
Add table
Add a link
Reference in a new issue