Thread: Ruby Snippets
View Single Post
Old Apr 10th, 2006, 5:20 PM   #13
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
A good way to approach these things is to assume that common functions exist and go from there. Ruby must have had some manner of max/min functions, so I just pulled up a Ruby language reference and searched for "max".

Educated guesses and dumb luck can turn up surprisingly efficient results, sometimes
Arevos is offline   Reply With Quote