RosettaCodeData/Task/Doubly-linked-list-Definition/PowerShell/doubly-linked-list-definition-3.ps1
2026-04-30 12:34:36 -04:00

14 lines
234 B
PowerShell

$current = $list.First
while(-not ($current -eq $null))
{
If($current.Value.X -eq 105)
{
$list.AddAfter($current, [PSCustomObject]@{ID=345;X=345;Y=345}) | Out-Null
break
}
$current = $current.Next
}
$list