thanks! 2009/6/17 Colin Law <[email protected]>
> > 2009/6/17 Developer In London <[email protected]>: > > is there a max function in ruby? > > > > eg max(number1, number2) > > See http://www.ruby-doc.org/core/classes/Enumerable.html > so > [1,3,2].max #=> 3 > > Colin > > > > > thanks > > > > nayeem > > > > > > > > > > > -- cashflowclublondon.co.uk ("`-''-/").___..--''"`-._ `6_ 6 ) `-. ( ).`-.__.`) (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,' (il),-'' (li),' ((!.-' . --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

