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]

x.smallest should = 1
x.largest should = 4

How is this done in Ruby?

Thank you,
Brad

-- 
Posted via http://www.ruby-forum.com/.