RosettaCodeData/Task/Set/AppleScript/set-2.applescript

14 lines
377 B
AppleScript

"Set S: 0, 9, 1, 6, 2, 7, 3, 8
\"aardvark\" is a member of S: false
3 is a member of S: true
Set A: 0, 9, 1, 6, 2, 7, 3, 8
Set B: 5, 6, 2, 7, 3, 8, 4
Union of A and B: 0, 9, 7, 5, 3, 1, 8, 6, 4, 2
Intersection of A and B: 6, 2, 7, 3, 8
Difference of A and B: 0, 9, 1
A is a subset of B: false
A is a subset of S: true
A is equal to B: false
A is equal to S: true"