On 2003-07-31 02:52:21 +0900, Martin DeMello wrote: > For all you FPers out there - is this a defined function in any > language's standard library? And if so, what is it called? No, it's not in the standard library. I called it "parition_by": http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/577 I am sure this method was reinvented several times until now, but named different each time. ;) -- Who controls the past controls the future. Who controls the present controls the past. -- George Orwell, 1984