Any one know why Array.join can't take a code block and join that 
value instead of what is actually in the array?  Perhaps I want to 
join on a subfield or process the item before joining it.  Right now 
I use collect and then join, but that just seems wasteful of memory.  


for instance (and yes I know it is a silly example):

list = ["A", "B", "C"]

#I want to do this 
puts list.join(","){|item| item.downcase}

#but I have to do this
puts list.collect{|item| item.downcase}.join(",")


Am I missing something?


Thanks,

Walt
*****************************************************
Walter Szewelanczyk
IS Director
M.W. Sewall & CO.        email : walter / mwsewall.com     
259 Front St.            Phone : (207) 442-7994 x 128
Bath, ME 04530           Fax   : (207) 443-6284
*****************************************************