Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 683 Bytes

File metadata and controls

22 lines (15 loc) · 683 Bytes
pid 1032
author Karl Prosser
title The Letter Diamond Oneli
date 2009-04-15 08:59:35 -0700
format posh
parent 1029

The Letter Diamond Oneli

@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