From: Siep Korteling Date: 2009-12-11T08:12:51+09:00 Subject: Re: Any Array method to delete elements and return them? 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)} hth, Siep -- Posted via http://www.ruby-forum.com/.