Yes, Ruby is the most beautiful language!
On 16 =C6=C5=D7, 21:20, Christopher Dicely
> 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