On 08/08/06, Ronald Fischer <ronaldf / eml.cc> wrote:
> Did I understand it right that there are no operators/functions
> predefined in Ruby for getting the minimum and maximum for two Fixnum?
>
> I.e.
>
>   def min(a,b)
>     a < b ? a : b
>   end
>
> Or did I just overlook something?
>
> Ronald
>
>
> --
> Ronald Fischer <ronaldf / eml.cc>
> Posted via http://www.newsoffice.de/
>
>
>

There is Enumerable#min.  [10,5,3,7].min will return 3.

Farrel