From: Jason Mayer Date: 2007-01-15T22:54:22+09:00 Subject: Re: Can anyone try to solve this problems? ------=_Part_88799_16944244.1168869259125 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/15/07, Cyrus Gabilla wrote: > > Hi to everybody. > > I am trying to solve these three problems in Ruby. I do not know if my > solutions are really correct. I just wanted to ask help, if somebody can > show their solutions. I would appreciated your help. > > 1. Write a one-line in irb using Range#inject to calculate 20!. Generalize > this into a function. > 2. Write a function to find the longest string in an array of strings. > 3. Write an iterator function n_times(n) that calls the given block n > times. > > Thanks. > > Cyrus Neat! Where are you taking classes on ruby? seriously. ------=_Part_88799_16944244.1168869259125--