Set: Difference between revisions
m
→{{header|PowerShell}}
No edit summary |
|||
Line 3,137:
$set1.IntersectWith($set2) # Intersection $set1 = 3, 4
$set1.ExceptWith($set2) # Difference $set1 = 1, 2
$set1.SymmetricExceptWith($set2) # Symmetric difference $set1 = 1, 2,
$set1.IsSupersetOf($set2) # Test superset False
|