Merge pull request #3389 from superyyrrzz/patch-1

[powershell/en] add list syntax example
This commit is contained in:
Divay Prakash 2018-11-16 17:23:23 +05:30 committed by GitHub
commit be6f76529e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,7 @@ $aString="Some string"
# Or like this:
$aNumber = 5 -as [double]
$aList = 1,2,3,4,5
$anEmptyList = @()
$aString = $aList -join '--' # yes, -split exists also
$aHashtable = @{name1='val1'; name2='val2'}