PoshCode

Community resources for PowerShell coders

LetterDiamondOneLiner v4

Download LetterDiamondOneLiner v4.ps1

Down to a two-statement sciptblock. 114 chars w/o the arg

&{($r=,(' '*($p=[char]$args[0]-($s=65))+[char]$s)+($p..1|%{"{0,$_} {1}{0}"-f[char]++$s,('  '*$f++)}));$r[-2..-99]}J