AppleScript名:和集合(union)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 unionSet:bSet –和集合 aSet’s allObjects() as list –> {5, 1, 6, 2, 7, 3, 4} |
More from my site
(Visited 18 times, 1 visits today)