Group: comp.lang.ruby
From: Ruhe
Date: Saturday, February 16, 2008 1:15 PM
Subject: Re: Iterate through array twice

Yes, Ruby is the most beautiful language!

On 16 =C6=C5=D7, 21:20, Christopher Dicely wrote:
> With Ruby 1.9:
>
> def find_square_sides(horiz_segments)
> squares =3D Array.new
> horiz_segments.combination(2) do |side, candidate|
> if (...whatever...)
> squares << Square.new(side, candidate)
> end
> end
> end
>
> On Feb 16, 2008 6:49 AM, Ruhe wrote:

Safety Articles | Usenet Groups | Usenet News | Bluegrass