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/.