September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,11 +0,0 @@
|
|||
function Get-Choice ([array] $Items) {
|
||||
Set-StrictMode -Version Latest
|
||||
|
||||
do {
|
||||
$Items | ForEach-Object { $i = 0 } { '{0,3}. {1}' -f (++$i),$_ }
|
||||
$choice = Read-Host Your choice
|
||||
} while ($choice -notmatch '^\d+$' -or
|
||||
!(1..$Items.Length -eq $choice))
|
||||
|
||||
$Items[$choice-1]
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
Get-Choice 'fee fie', 'huff and puff', 'mirror mirror', 'tick tock'
|
||||
Loading…
Add table
Add a link
Reference in a new issue