Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
3
Task/Stack/PowerShell/stack-1.ps1
Normal file
3
Task/Stack/PowerShell/stack-1.ps1
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$stack = New-Object -TypeName System.Collections.Stack
|
||||
# or
|
||||
$stack = [System.Collections.Stack] @()
|
||||
1
Task/Stack/PowerShell/stack-2.ps1
Normal file
1
Task/Stack/PowerShell/stack-2.ps1
Normal file
|
|
@ -0,0 +1 @@
|
|||
1, 2, 3, 4 | ForEach-Object {$stack.Push($_)}
|
||||
1
Task/Stack/PowerShell/stack-3.ps1
Normal file
1
Task/Stack/PowerShell/stack-3.ps1
Normal file
|
|
@ -0,0 +1 @@
|
|||
$stack -join ", "
|
||||
1
Task/Stack/PowerShell/stack-4.ps1
Normal file
1
Task/Stack/PowerShell/stack-4.ps1
Normal file
|
|
@ -0,0 +1 @@
|
|||
$stack.Pop()
|
||||
1
Task/Stack/PowerShell/stack-5.ps1
Normal file
1
Task/Stack/PowerShell/stack-5.ps1
Normal file
|
|
@ -0,0 +1 @@
|
|||
$stack -join ", "
|
||||
1
Task/Stack/PowerShell/stack-6.ps1
Normal file
1
Task/Stack/PowerShell/stack-6.ps1
Normal file
|
|
@ -0,0 +1 @@
|
|||
$stack.Peek()
|
||||
1
Task/Stack/PowerShell/stack-7.ps1
Normal file
1
Task/Stack/PowerShell/stack-7.ps1
Normal file
|
|
@ -0,0 +1 @@
|
|||
$stack
|
||||
Loading…
Add table
Add a link
Reference in a new issue