in reply to Re: Golf: Seven segment display
in thread Golf: Seven segment display
Applying the ...=~/./g trick (which you already used once inside the map) again:
sub w{for$;(-2..0){say map{substr' _ _|_ |_| |',2*ord(('u$SR,Z]dmj'=~/./g)[$_])>>-3*$;&14,3}$_[0]=~/./g}}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Golf: Seven segment display
by brx (Pilgrim) on Jan 24, 2012 at 15:34 UTC | |
by locked_user mtve (Deacon) on Jan 27, 2012 at 13:52 UTC | |
by kikuchiyo (Hermit) on Jan 28, 2012 at 18:08 UTC | |
by locked_user mtve (Deacon) on Jan 29, 2012 at 10:59 UTC |