From: Robert Mela Date: 2006-06-08T22:20:31+09:00 Subject: Easy question --------------090005040404050807070909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I want to maintain a list of two-dimensional points and store, at list level, the min and max values for x and y. The minx/maxx/miny/maxy should be updated as each point is pushed onto the list. The following works, but it's probably not leveraging Ruby: def add_point( p ) @points.push(p) if !@minx || @minx > p.x @minx=p.x end if .... Thanks in advance. --------------090005040404050807070909 Content-Type: text/x-vcard; charset=utf-8; name="rmela.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rmela.vcf" begin:vcard fn:Robert Mela n:Mela;Robert adr;dom:;;;Lexington;MA email;internet:rmela@rcn.com tel;cell:781-363-0982 x-mozilla-html:FALSE version:2.1 end:vcard --------------090005040404050807070909--