From: "David A. Black" Date: 2008-07-18T08:48:16+09:00 Subject: Re: The next number that is not in an array Hi -- On Thu, 17 Jul 2008, Robert Dober wrote: >> true while restricted_numbers.include?(n+=1) > I think there is a typo in here ;) > > Did you mean > > 42 while restricted_numbers.include?( n+= 1 ) > > of course you did. No, I believe I got it right the first time :-) David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails July 21-24 Edison, NJ Advancing With Rails August 18-21 Edison, NJ See http://www.rubypal.com for details and updates!