From: Mike Fletcher Date: 2006-10-31T23:12:32+09:00 Subject: Re: array of integers Brad Tilley wrote: > What is the best way to get determine the largest and smallest int in an > array of ints? For example: > > x = [1,2,3,4] > puts x.max puts x.min See the documentation for Enumerable (try "ri Enumerable" at your prompt). -- Posted via http://www.ruby-forum.com/.