From: Florian Gross Date: 2004-12-05T08:22:37+09:00 Subject: Re: Ruby 2.0 William James wrote: > Brian Mitchell wrote > >>32.times{|y|print" "*(31-y);(y+1).times{|x|print" #{~y&x==0?"A":"."}"};puts} > > Excellent signature, Brian. Here's a shortened version: > > 32.times{|y|print" "*(31-y);(y+1).times{|x|print~y&x>0?" .":" A"};puts} Yet shorter: 32.times{|y|print" "*(31-y),(0..y).map{|x|~y&x>0?" .":" A"},$/}