From: "Iñaki Baz Castillo" Date: 2009-12-11T08:18:58+09:00 Subject: Re: Any Array method to delete elements and return them? El Viernes, 11 de Diciembre de 2009, Siep Korteling escribió: > Iñaki Baz Castillo wrote: > > Hi, I've an array like this: > > > > a = [1,2,3,"aaa","bbb",4,"ccc"] > > > > I want to remove from the array all the Strings, but also want these > > Strings > > in a new Array. > > strings, a = a.partition{|e| e.is_a?(String)} Great! -- Iñaki Baz Castillo