AppleScript名:補集合(set difference)v2 |
— Created 2017-02-24 by Takaaki Naganoya — Created 2017-03-01 by Shane Stanley use AppleScript version "2.4" use scripting additions use framework "Foundation" –http://piyocast.com/as/archives/4491 set aSet to current application’s NSMutableSet’s setWithArray:{1, 2, 3, 4} set bSet to current application’s NSMutableSet’s setWithArray:{3, 5, 6, 7} aSet’s minusSet:bSet –補集合 aSet’s allObjects() as list –> {2, 1, 4} |
More from my site
(Visited 21 times, 1 visits today)