Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,8 @@
$list = New-Object -TypeName 'Collections.Generic.LinkedList[PSCustomObject]'
for($i=1; $i -lt 10; $i++)
{
$list.AddLast([PSCustomObject]@{ID=$i; X=100+$i;Y=200+$i}) | Out-Null
}
$list

View file

@ -0,0 +1,3 @@
$list.AddFirst([PSCustomObject]@{ID=123; X=123;Y=123}) | Out-Null
$list

View file

@ -0,0 +1,14 @@
$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

View file

@ -0,0 +1,3 @@
$list.AddLast([PSCustomObject]@{ID=789; X=789;Y=789}) | Out-Null
$list