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