Heesob Park wrote:
> 2009/2/18 7stud -- <bbxx789_05ss / yahoo.com>:
>>  resultB << "|" << item
>> end
>> resultB << "|"
>>
> You can also write it using inject like this:
> arr = arr2.inject(["|"]){|r,e|r<<e<<"|"}
>

As long as you realize that inject() is always the most inefficient 
solution possible.
-- 
Posted via http://www.ruby-forum.com/.