Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

array difference powershell

$Yellow   = [Int[]][Linq.Enumerable]::Except($a, $b)
$Blue     = [Int[]][Linq.Enumerable]::Except($b, $a)
$Green    = [Int[]][Linq.Enumerable]::Intersect($a, $b)
$NotGreen = [Int[]]([Linq.Enumerable]::Except($a, $b) + [Linq.Enumerable]::Except($b, $a))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #difference #powershell
ADD COMMENT
Topic
Name
9+7 =