Carlos
8/11/2006 11:57:00 AM
Christian Neukirchen wrote:
> Michael Ulm <michael.ulm@isis-papyrus.com> writes:
>
>
>>a=[]
>>34.times{k=0;puts (a.map!{|i|k+k=i}<<1).join(" ")}
>
>
> a=[]
> 34.times{k=0;puts (a.map!{|i|k+k=i}<<1)*" "}
Let's reuse a not needed array and save 4 bytes :) (doesn't work if you
set RUBY_OPT to always require some module...)
34.times{k=0;puts ($".map!{|i|k+k=i}<<1)*" "}
--