From: Jason Merrill Date: 2006-09-05T21:57:34+09:00 Subject: Re: Binary Search Using Lambda As an aside, I would be warry of building functions that return array indices, or -1 if they fail. In ruby, -1 is a valid array index, referring to the last element in the array. Might be better to return nil to avoid later mistakes and confusion. Jason