diff --git a/powershell/unique/Kmek_UniqueArray.ps1 b/powershell/unique/Kmek_UniqueArray.ps1 new file mode 100644 index 00000000..4a6217b7 --- /dev/null +++ b/powershell/unique/Kmek_UniqueArray.ps1 @@ -0,0 +1,7 @@ +$array = @(1, 10, 7, 1, 1, 4) + +Write-Host $array + +$array = $array | Select-Object -Unique # The sorting one-liner + +Write-Host $array