in reply to Filling an array. (Golf challenge?)

Amazing! It is really true that if you want to achieve results, you should throw a competition!
Here are the shortest ones so far: (29)
map{$a=$_;map$a.$_,1..8}a..h; # by runrig
map{$r=$_;map$_.$r,a..h}1..8; # by Anonymous
Runrig's solution could be reduced to
map{map{$_}$_.1..$_.8}a..h; #27, but unfortunately it's the wrong orde +r. #23456789_123456789_1234567
update tilly's sharp eye noticed a possibility for further squeezing it down to 19 chars!
 _  _ _  _  
(_|| | |(_|><
 _|   

Replies are listed 'Best First'.
Re (tilly) 2: Filling an array. (Golf challenge?)
by tilly (Archbishop) on Jan 05, 2002 at 18:49 UTC
    If you were reducing it, there is no need for the inner map:
    #23456789_123456789 map$_.1..$_.8,a..h;
    But, as you say, that is in the wrong order.