Created
August 12, 2024 13:51
-
-
Save otuva/7c57b55d3afd0b9b096181bb0ea9d56b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Collections.Generic.HashSet[String]]$oldUsers = @("Val1", "Val2", "Val3", "Val4") # first collection | |
[System.Collections.Generic.HashSet[String]]$newUsers = @("Val1", "Val2", "Val3") # second collection | |
$newUsers.ExceptWith($oldUsers) | |
$newUsers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment