From: vsv Date: 2006-03-29T16:28:41+09:00 Subject: Range#to_a, each - why inconsistent? Could someone explain me, please, why Range with one element is iterated inconsistently when this element is empty string: $ irb --simple-prompt >> ('a'..'a').to_a => ["a"] >> (1..1).to_a => [1] ## but: >> ("".."").to_a => [] >> ("".."").each{|s| puts 'Inside'} => "".."" Why to_a returns empty [] and each block never executed? Is it bug or feature? Any reasonable explanation? thanks Sergey