From: "Jesús Gabriel y Galán" Date: 2013-07-31T00:13:54+09:00 Subject: Re: Working through Ch.10 for learning to program 2.0 (Chris Pine) On Tue, Jul 30, 2013 at 3:42 PM, Harry Kakueki wrote: > I have not heard from the OP for almost 24 hours, so I will post an idea. > > a = [3,1,4,1,5,9,2,6,5,3,5,8,9,7,9] > > #one-line version > p [].tap{|b| (0...a.size).each{|c| a.each{|d| b << d if a.select{|e| > e