RosettaCodeData/Task/Collections/PowerShell/collections-3.psh
2023-07-01 13:44:08 -04:00

9 lines
179 B
Text

$list = New-Object -TypeName System.Collections.ArrayList -ArgumentList 1,2,3
# or...
$list = [System.Collections.ArrayList]@(1,2,3)
$list.Add(4) | Out-Null
$list.RemoveAt(2)