| pid | 1032 |
|---|---|
| author | Karl Prosser |
| title | The Letter Diamond Oneli |
| date | 2009-04-15 08:59:35 -0700 |
| format | posh |
| parent | 1029 |
@CAMurphy A slightly more elegant PowerShell version for "his challenge":http://www.craigmurphy.com/blog/?p=1417 -Refactored Jaykuls down to a 1 liner, but couldn't get it smaller than a twitter message length
&{Param([char]$l)$s=66;$z=[int]$l;$o=$z-$s+ 5;$p=-1;$n=&{"$(" "*$o)A";([string[]][char[]]($s..$z))|%{$p+=2;$o--;"$(" "*$o)$_$(" "*$p)$_"}};$n;$n[$($n.Length-2)..0]}L