From: Drew Olson Date: 2007-02-10T03:11:11+09:00 Subject: Re: Your favorite bit of ruby code? Carl Lerche wrote: > I'm just curious what your favorite bit of ruby code is? Do you have The codegolf line for printing the first 34 lines of pascal's triangle: 34.times{k=0;puts ($*.map!{|i|k+k=i}<<1)*" "} Man, that's succinct. -Drew -- Posted via http://www.ruby-forum.com/.