RosettaCodeData/Task/Collections/PowerShell/collections-3.ps1
2026-04-30 12:34:36 -04:00

9 lines
179 B
PowerShell

$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)